raix-push icon indicating copy to clipboard operation
raix-push copied to clipboard

Notifications not receiving on device

Open adriacobo opened this issue 5 years ago • 3 comments

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!

adriacobo avatar Nov 11 '19 15:11 adriacobo

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.

da314pc avatar Nov 13 '19 18:11 da314pc

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.

adriacobo avatar Nov 14 '19 07:11 adriacobo

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.

da314pc avatar Nov 14 '19 16:11 da314pc