0

我试着像下面这样使用

我正在使用 pyfcm 发送通知(https://github.com/olucurious/PyFCM/)。

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")

我添加了 sound="Default" 作为该函数的最后一个参数。但是即使通知即将到来,移动设备也不会发出任何声音。

这是一个 react native 应用程序,但我认为 react native 在这里无关,因为任何移动应用程序甚至都不知道通知何时进入后台。

知道如何解决这个问题吗?谢谢

4

0 回答 0