Meteor-Community-Packages / raix-push

DEPRECATED: Push notifications for cordova (ios, android) browser (Chrome, Safari, Firefox)
https://atmospherejs.com/raix/push
MIT License
514 stars 197 forks source link

Notifications not receiving on device #372

Open adriacobo opened 4 years ago

adriacobo commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.