-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cannot make notification silent #1858
Comments
Hi @nastarfan, |
On android it is easy to control the sound with channel configuration (cannot be overridden by the local notification). But it is needed for iOS, and I did check this,
What I understand is to stop the sound we should remove sound key at all... |
Hi @eyalyoli
I will take a look later. |
Yeah I read in the docs about that, I have tried uninstalling and reinstalling the app after making the change i.e. |
Hi @nastarfan |
@Dallas62 thanks for your suggestion, I tried changing the id of the channel to a newly created one, it still produces the sound. |
Your are probably using an old version: |
hi @Dallas62 many thanks for your help! updating to the new version solves the issue. Sorry I didn't notice the change in changelog, that's why I didn't update. Apparently there's another issue raised by other user, I'll keep this issue opened |
Hi @eyalyoli |
Question
Hi, I've been trying to make a notification that doesn't make any sound, but couldn't accomplish it since the library uses channel system on Android.
Ideally I'd like to control the
soundName
andplaySound
configuration of the notification through notification configuration object, but apparently on Android it's now bound to the channel configuration. So to have different values for soundName it should be done by providing separate channel for each value.However, one thing that I can't do is disabling the sound of the notification, even tho I explicitly set the value when creating the channel
it seems that the
playSound
property is disregarded, since the notification would still come with a sound.The only way that I can disable the sound is by setting the importance to low (2), but this makes the notification heads-up doesn't appear. Is there a way to properly disable the sound while still showing the notification heads-up?
platform: Android
"react-native-push-notification": "^6.1.1",
The text was updated successfully, but these errors were encountered: