Custom ringtones and notifications
Follow these steps to customize ringtones and notification sounds in the application.
Step 1: Add Sound Files
For Ringtones:
Place your ringtone files in the following directory:
/html/sounds/ringtones/
For Notification Sounds:
Place your notification sound files in the following directory:
/html/sounds/notifications/
Ensure the files are in a supported audio format (e.g., .ogg, .mp3).
Step 2: Add New Sound Config.json
Adding Ringtones:
Copy the relative path of the ringtone file from
/html/sounds/ringtones/.Add a new entry under the
Soundssection in theconfig.jsonfile.
Example: If you add a file named chime.ogg, the updated Sounds section may look like this:
"Sounds": {
"Default": "/html/sounds/ringtones/default.ogg",
"Classic": "/html/sounds/ringtones/classic.ogg",
"Bell": "/html/sounds/ringtones/bell.ogg",
"Chime": "/html/sounds/ringtones/chime.ogg"
},
Adding Notification Sounds:
Copy the relative path of the notification sound file from
/html/sounds/notifications/.Add a new entry under the
Notificationssection in theconfig.jsonfile.
Example: If you add a file named alert.ogg, the updated Notifications section may look like this:
"Notifications": {
"Arrived": "/html/sounds/notifications/arrived.ogg",
"Crystal": "/html/sounds/notifications/crystal.ogg",
"Ping": "/html/sounds/notifications/ping.ogg",
"Alert": "/html/sounds/notifications/alert.ogg"
}Step 3: Restart the phone
After adding the audio files and updating the config, you need to restart the phone for the changes to take effect.
Last updated