Push notification sound

Hi,
I am developing an application in flutter. I send push messages from the server to the app, using Rest API and PHP. I want to use different sound, for different notifications. How do I set a specific sound in an app. Onesignal has the command ‘android_channel_id’. How can I do this in Wonderpush?
Thanks

Hi,

On pre Android 8 devices, you can control the sound using the alert.android.sound field of the notification parameter of the POST /v1/deliveries end-point.

On Android 8+ devices, you must have created the NotificationChannels beforehand. You then need to reference them using the alert.android.channel field of the notification parameter of the POST /v1/deliveries end-point.

From the dashboard you will fill the Notification channel id (Android) field in the Platform options / Sound, badges and foreground (Android, iOS) section, on the Advanced tab of the notification edition form.
You also have the Sound resource name (Android) field for pre Android 8 and iOS devices there.
image

Best,