Skip to content
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

Notifications not receiving on device #372

Open
adriacobo opened this issue Nov 11, 2019 · 3 comments
Open

Notifications not receiving on device #372

adriacobo opened this issue Nov 11, 2019 · 3 comments

Comments

@adriacobo
Copy link

Hi, After a lot of test I can't get the notifications work on devices:
The log on server says:

Push: Sent message "Tall a la carretera" to 1 ios apps 3 android apps
ne0y42019-11-05 12:00:07+01:00ANDROID: Result of sender: {"multicast_id":7505750917102570000,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1572951607103985%64c749010034af1a"}]}
ne0y42019-11-05 12:00:07+01:00ANDROID: Result of sender: {"multicast_id":7786444431150586000,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1572951607083088%64c749010034af1a"}]}
ne0y42019-11-05 12:00:07+01:00ANDROID: Result of sender: {"multicast_id":8368181802808929000,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1572951607092844%64c749010034af1a"}]}

But only on one Android device is received and not always. How can I know what I made wrong or what is failing?
Thanks!

@da314pc
Copy link
Collaborator

da314pc commented Nov 13, 2019

did you deploy the ios app with testflight? only ios apps deployed through the appstore will work with push notifications. Also android will only work with the app in the background.

@adriacobo
Copy link
Author

Hi @da314pc

The App is submitted on both markets and the notifications are sometimes arriving on Android (withh the app in the background) and only I get one time on IOs.
I can't give to you more details because I don't know what's happening.
I cant log if the notification is received, I only have the log on the previous comments that says is all right.

@da314pc
Copy link
Collaborator

da314pc commented Nov 14, 2019

Looking at the logs you posted, everything seems to be working correctly with the server. If your not getting the notifications on iOS it means there's a problem with your your certificates.

I would regenerate your key.pem, cert.pem, and p12 file.
https://github.com/raix/push/blob/master/docs/IOS.md

For android I would maybe check into upgrading the cordova push plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants