How to send notification without a sound #587
Replies: 1 comment 1 reply
-
That's a good question! First and foremost: I don't know for sure 😅. As far as I know, whether a sound is actually played on the device or not, is controlled by the device, not by the message. The message only specified: "If a sound is played, use this one", then, on the device, the system looks at the notification settings and if it's in DND mode and then acts accordingly. If the message has no sound specified, the device then uses the system default sound. If you want to make sure that no sound is played, I think the solution could be to send a background message instead of a notification message by not using the Then, when the message reaches your app, the app handles the message and triggers/creates the notification on the device. 🤞 |
Beta Was this translation helpful? Give feedback.
-
In my android app, the user has the possibility to disable notification sounds in the app settings.
If
$withSound
is set, the methodwithDefaultSounds
is called.But a sound is always played when receiving a notification.
Also explicit setting
sound
tofalse
doesn't work.I debugged it to make sure that
withDefaultSounds
isn't called.Does anyone have an idea, what I'm doing wrong?
I thought that not calling the method
withDefaultSounds
should disable notification sounds.Beta Was this translation helpful? Give feedback.
All reactions