bit6 / bit6-cordova

Bit6 Cordova Plugin - add rich messaging and WebRTC voice/video calling to iOS and Android apps
8 stars 12 forks source link

Ringtone sound when incomming call #9

Closed nmolinaca closed 7 years ago

nmolinaca commented 7 years ago

When the app receives an incomming call notification the app sounds the default sound not the ringtone.

I was searching for solution and the solution is at your server, just adding to the GCM JSON "sound":"ringtone"

Example:

{ "registration_ids": ["my device id"], "data": { "title": "Ringtone", "message": "Plays default ringtone sound", "soundname": "ringtone" } }

Documentation: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#sound

narek-h commented 7 years ago

Thanks for the suggested solution.

Actually this is in our TODO list, and hopefully will be fixed soon.