-
Notifications
You must be signed in to change notification settings - Fork 28
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
iOS payload problem #33
Comments
+1 |
+1 |
Guys, If anyone has that problem, try to fix that by putting a 'notification" payload as the example below . That works for me when the iOS is in background. I think that is missing in the docs. The iOS only will get background push, if 'content_available': True, and content inside the 'notification' payload is set. devices.send_message({'message': request.data['body'], cheers, |
Thanks so much @claudiocleberson. It worked. |
I am trying the same for IOS, but it is not working for me. user_phone = Device.objects.get(name='user1') res = user_phone.send_message( It is not sending notification to IOS device. Please help. |
@joshisumit I think you pass wrong parameters to the method class UserDevice(AbstractDevice): |
Thank you so much @hungnv132 It worked for me. |
Does anyone have problem with iOS devices that they can't receive message from django-fcm?
Android receives it, and when test from firebase console ios device receive message, just when using with django-fcm i can't get it work?
The text was updated successfully, but these errors were encountered: