Specific sound when sending push-notification to individual device(s)

You can set the custom notification sound following these steps:

  1. Locate your sound in the raw resource directory. For example: /app/res/raw/mysound.mp3.
  2. Add the custom header with the name of your sound (without file extension):
    publishOptions.putHeader("android-content-sound", "mysound");
  3. Send the notification with defined publish options:
    Backendless.Messaging.publish("Message", publishOptions, deliveryOptions)

Small icon for the notification can be set only from Push Template. Here is the example how to do it:

Also we will release the new version soon that will allow to send the push notifications to individual devices.

Best Regards,
Maksym

1 Like