Closed ghost closed 4 years ago
We're using the current master branch and had problems while broadcasting to Android devices. Broadcasts would not be sent to Android devices.
Our Android devices token showed up as "device": "android" and I saw that DEVICE_TYPE_ANDROID was not handled in web.py's send_broadcast.
"device": "android"
web.py
send_broadcast
I modified the condition and made the function async, since the fcm.process has to be awaited.
async
fcm.process
Now Broadcasting works for Android and iOS devices.
@lkstnr Thank you for contributing :)
We're using the current master branch and had problems while broadcasting to Android devices. Broadcasts would not be sent to Android devices.
Our Android devices token showed up as
"device": "android"
and I saw that DEVICE_TYPE_ANDROID was not handled inweb.py
'ssend_broadcast
.I modified the condition and made the function
async
, since thefcm.process
has to be awaited.Now Broadcasting works for Android and iOS devices.