olucurious / PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
http://olucurious.github.io/PyFCM/
MIT License
804 stars 206 forks source link

Sound not working #257

Closed bhaskar8088 closed 2 years ago

bhaskar8088 commented 4 years ago

I tried to use like below

push_service = FCMNotification(api_key) push_service.notify_multiple_device(registration_ids=registration_ids, message_title=message_title, message_body=message_body, data_message=data_message, sound="Default")

I added sound="Default" as last parameter of that function. But mobile not making any sounds even though notification is coming.

Any idea how to fix this? Thanks

Luckius commented 4 years ago

Hello any help here will be approciated because even me iam facing the same problem!! please help

000xuandu commented 4 years ago

sound="default" is working for me.

result = push_service.notify_multiple_devices(registration_ids=registration_ids,
                                                                  message_title=message_title,
                                                                  message_body=message_body,
                                                                  data_message=data_message,
                                                                  content_available=True,
                                                                  extra_kwargs=extra_kwargs,
                                                                  sound="default")
TheBestMoshe commented 4 years ago

sound="Default" Works for me as well