-
-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase iOS notifications not working with new HTTP v1 API #723
Comments
Same here, works on android but not ios |
The way it gets wrapped in message is wrong now, one way to circumvent that is wrap this in a message directly as the send message special cases that type. note: If you need to send high volumes of message the HTTP v1 API is slow as there is no batching endpoint, and the firebase SDK doesn't use HTTP/2 yet. |
@Klemenceo thanks for the tip. Tried your method and it worked with:
device.send_message( However, I'm also trying to add 'badge' and 'sound' for ios. Where would you include them using this method? |
Hello, I used to send like this:
and it's not working anymore. With @irvinsingGitHub code, it's working this way :
My problem is that I used to do some unit test:
but now I can't run the unit test with messaging.Message, does anyone know how I can do that? Thanks |
To send a
I may have misunderstood, but as a sidenote, there also seems to be a spelling mistake in the code (or in the docs). Docs say |
I moved my app to use Firebase instead of APNS for iOS devices, and it was working with the legacy FCM API. After updating to the new HTTP v1 API notifications no longer go to iOS devices. Android devices work as expected.
When sending from the Django admin I get an 'All messages were sent.' success message, and when sending from the command line using send_message I get a success response as well.
I took the device registration ID for my iOS test device and sent a message using the firebase console and the notification worked. So the configuration is correct on that side, is there anything additionally that needs to be done in Django?
The text was updated successfully, but these errors were encountered: