fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
623 stars 997 forks source link

Sound and vibration on receive #249

Open jonathan-chin opened 7 years ago

jonathan-chin commented 7 years ago

This is an amazing plugin and it saves me a ton of work. As far as I can tell, however, the notifications I receive fail to play a sound or vibrate the phone. Is this true?

I'm looking at the source code for Android and it looks like it should at least play a sound. My phone is running Android 6.0.1 if that matters.

If this is true, I'd be happy to contribute to the codebase, at least for the Android side. I just want to make sure I'm not overlooking functionality that's already built in.

elewin commented 7 years ago

try adding  "sound":"default" under notification to the json in the message you send see https://firebase.google.com/docs/cloud-messaging/http-server-ref

jaymesanches commented 7 years ago

Hi, I can get sound but I can´t get vibration... I have put in Manifest and "sound":"default" in json notification... What else should I do?

Thanks

amit777 commented 7 years ago

@jaymesanches did you ever figure out the vibration notification?

devotebest commented 5 years ago

I got same problem with custom sound and vibrate. please give me solution, thanks

freescout-helpdesk commented 4 years ago

Same here.

Here is the feature request: https://github.com/fechanique/cordova-plugin-fcm/issues/49