Flutter_Messaging Do Not Play Sound on a Real Android Phone

69 views Asked by At

Currently, I have implemented the Firebase Cloud Messaging on my application. The notification is function in foreground and background.

When I run the app on emulator, the sound is play with the default music. Once I run on a real Android device, there is the notification but without any notification sound. Can someone show me where is the problems?

1

There are 1 answers

2
Gabriel Costache On BEST ANSWER

Set a higher priority in the JSON you send to the client, you have all the documentation here:

https://firebase.google.com/docs/cloud-messaging/concept-options#setting-the-priority-of-a-message