react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

Android notification is not generating any sound or vibration

Open sunsay00 opened this issue 8 years ago • 5 comments

When Android receive a notification. The message shows up but there's no sound or vibration.

sunsay00 avatar Jun 20 '18 04:06 sunsay00

If you want to use default sound of the device, you should use: "sound": "default". on the notification payload.

oscar-omana avatar Jun 20 '18 17:06 oscar-omana

Thanks for the response but I don't know where am i suppose to set that. Do you mind pointing me to the right place? I am still very new with react-native and andriod.

sunsay00 avatar Jun 21 '18 02:06 sunsay00

Sorry for the late response, depends from where you're sending the notification. if you're sending it directly from FCM then just follow this answer [https://stackoverflow.com/a/44304089/5482431]

If you're using something else to send the notification information to FCM, then the dictonary which you're sending should have "sound": "default"

oscar-omana avatar Jun 22 '18 15:06 oscar-omana

It's working now. Thanks.

sunsay00 avatar Jun 23 '18 03:06 sunsay00

@sunsay00 Don't forget to close the issue.

ItsNoHax avatar Aug 28 '18 08:08 ItsNoHax