[Firebase Cloud Message Plugin] Notification Custom sound

Forge Component
(6)
Published on 18 Jul by Experts
6 votes
Published on 18 Jul by Experts

HI 


How can I configure so my app plays custom sound when push notification received?


Regards,

Anahit

Hi Anahit,

You need the custom sound for which toolkit?

Hi Anahit,

Maybe this forum post will help: https://www.outsystems.com/forums/discussion/35714/local-notification-plugin-how-to-use-a-custom-sound/

I however haven't tried it myself.

In the SendNotification calls of FirebaseCloudMessageMiddleware there is a Sound input parameter. If you want a custom sound you have to fill the input with a link to your sound file. The sound file has to be bundled with the app so you should add it as a resource.

Ruben van Vugt wrote:Hi thank you very much for your reply.

the ios sound works, but for android when I do it same way is not working. 

Do I have to target sound files in a specific directory for android?

Hi Anahit,

Maybe this forum post will help: https://www.outsystems.com/forums/discussion/35714/local-notification-plugin-how-to-use-a-custom-sound/

I however haven't tried it myself.

In the SendNotification calls of FirebaseCloudMessageMiddleware there is a Sound input parameter. If you want a custom sound you have to fill the input with a link to your sound file. The sound file has to be bundled with the app so you should add it as a resource.



Hi Everyone


Is there possibility to change android push notification sound ?

Anahit Pahlevanyan wrote:

Hi Everyone


Is there possibility to change android push notification sound ?


For iOS, it is possible, not sure about Android Anahit.