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

How to debug Push? (Push simply stopped working.) #279

Closed rajpa closed 7 years ago

rajpa commented 7 years ago

@raix Dear Raix, My android app version of the meteor app has stopped receiving notifications. It was previously working well. Checked the GCM keys, changed them, checked the raix:push version, tried 3.0.3rc5+ and later 3.1.0pre1. Nothing works.

How do I debug this? Pls help. This comes at a time when I am pushing my app's first release to QA.

Thanks in advance, rajpa

rajpa commented 7 years ago

I am guessing it has probably to do with FCM. Will try with the FCM keys and report back.

/rajpa

rajpa commented 7 years ago

My app is receiving FCM messages from the Firebase console but not from my server.

rajpa commented 7 years ago

@raix Dear raix,

I am on version 3.0.3 rc7. I set Push.debug to true.

I get the following output:

Push.Configure { sendTimeout: 60000, gcm: { apiKey: 'AIzaSyAgHrtI.... ', projectNumber: 12345 // picked up from firebase console as SenderID senderID: 12345 // picked from firebase console } } GCM configured Push: Send worker started, using interval: 15000 Kadira: completed instrumenting the app Push: Settings userId "mmybHMmpLEMvoridg" for app: fZDswqRNyxpDwso5m Push: Send message "Large icon" via query {} Push: Sent message "Large icon" to 0 ios apps 0 android apps Push: Send message "Large icon" via query {} Push: Sent message "Large icon" to 0 ios apps 0 android apps Push: Send message "Large icon" via query {} Push: Sent message "Large icon" to 0 ios apps 0 android apps

Pls help.

Regards/Rajpa

rajpa commented 7 years ago

more debug messages...

Create GCM Sender using "AIzaSyAg........" A:Send message to: f2iBjEX20Gk:APA91bGnYd3OQXGY9hzki ....... Push: Sent message "Very Large icon" to 0 ios apps 1 android apps Push, GUIDE: The "Push.appCollection" - No APN clients have registred on the server yet... ANDROID: Result of sender: {"multicast_id":8110392525666500000,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}

why is there a mismatchsender id.. both the client and server are configured with the same senderid...

any help please?

thanks/rajpa

raix commented 7 years ago

@rajpa I have to look into FCM and investigate - I'm sorry I don't have an answer atm.

rajpa commented 7 years ago

@raix strangely now, the push notification works for the first time . i.e. the app gets one push notification and then it stops working with the following error: First time: A:Send message to: ed-W2nbGr3U:APA91bE-JiMpR7rvJLzz3262ZUsaXv1tCSOIkG8rUfVRqMnAvAZw-FbdX3naga4r0CggGQY4GbiYA2B7dOWDvJsZG76e6YfZ7Ne-csScERcB8cdGdKSWNc1ok8SVJHWoy4oQA1PvInoF Push: Sent message "#ADMKSplit" to 0 ios apps 1 android apps Push, GUIDE: The "Push.appCollection" - No APN clients have registred on the server yet... ANDROID: Result of sender: {"multicast_id":6646310663259070000,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1485865036941049%7b72c47d88f21341"}]}

Second time: A:Send message to: eGUYcAhzbOI:APA91bEtnJlpjvXWq8c3oXKWS3CTRxKjEGiOmmzIUyi5HIE11KH6U6irfdAlcS7Z4dzwHylEJEtXN42InXm3IAc6e1qzcNprtwy8Tuoy8XjqPZOuuNO47ss_WskK5ZJRxLpAunZtkNrk Push: Sent message "After Amma" to 0 ios apps 1 android apps Push, GUIDE: The "Push.appCollection" - No APN clients have registred on the server yet... ANDROID: Result of sender: {"multicast_id":5717650893925849000,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]} 3LGvYBH37KwRAufgD

raix commented 7 years ago

What version are you using?

rajpa commented 7 years ago

hi @raix, i am using 3.0.3-rc.7 as a local package cloned from this repo using mgp..

cheers rajpa

rajpa commented 7 years ago

dear @raix, If I clear all the data in the app on android, it starts working again...!! It looks like the problem happens every time the app is autoupdated over hotpush...

raix commented 7 years ago

@rajpa hmm, so after a code push to android the push plugin stops working?

rajpa commented 7 years ago

@raix Suddenly everything is working again!! But I did have this problem a while back. I cleared all the data from the Android app and it has continued to work since then.

On Feb 16, 2017 23:54, "Morten N.O. Nørgaard Henriksen" < notifications@github.com> wrote:

@rajpa https://github.com/rajpa hmm, so after a code push to android the push plugin stops working?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/raix/push/issues/279#issuecomment-280415075, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpPsNERsBMG5f_GNPv6p6ExcXkIMjAMks5rdJRxgaJpZM4LjCyp .

raix commented 7 years ago

@rajpa I think I had some issues on meteor and the code push once too - but I'm not sure if it's directly related to this package

Denly commented 6 years ago

Hi @rajpa The raix:push on my android suddenly not working too recently. May I know how to visit the firebase console to get the debug messages? I can't find the console on firebase panel to get debug information. Thank you!

rajpa commented 6 years ago

@Denly this happens to me whenever there is a version change in some of the cordova plugins of the app. then i clear the cache of the app and it starts working again.

regarding the firebase console, nothing appears on mine either!!

@raix is it possible to view the stats of the push notifications on firebase?

Denly commented 6 years ago

@rajpa looks there is a way to view logs for diagnostics. https://support.google.com/googleplay/android-developer/answer/2663268?hl=en

How you clear the cache? Like deleting .meteor/local/cordova-build & plugin-cache & bundler-cache? I did updated meteor recently. May be the cause.

rajpa commented 6 years ago

You have to clear the cache on the mobile.

On Jul 9, 2017 11:07, "Den" notifications@github.com wrote:

@rajpa https://github.com/rajpa looks there is a way to view logs for diagnostics. https://support.google.com/googleplay/android-developer/ answer/2663268?hl=en

How you clear the cache? Like deleting .meteor/local/cordova-build & plugin-cache & bundler-cache? I did updated meteor recently. May be the cause.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/raix/push/issues/279#issuecomment-313900271, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpPsJroupPucafVpY7n4elDqWrd27jVks5sMGcHgaJpZM4LjCyp .

Denly commented 6 years ago

@rajpa May I know how to clear the cache on mobile for meteor app? Sometimes my app doesn't run the code I just pushed. It'll help a lot.

rajpa commented 6 years ago

Go to application manager on android, click on the app and then app info and clear cache..

On Jul 9, 2017 11:14, "Den" notifications@github.com wrote:

@rajpa https://github.com/rajpa May I know how to clear the cache on mobile for meteor app? Sometimes my app doesn't run the code I just pushed. It'll help a lot. (even I uninstalled it)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/raix/push/issues/279#issuecomment-313900525, or mute the thread https://github.com/notifications/unsubscribe-auth/AGpPsMeSciU8QoE5JAJP4nLPn6dXskzLks5sMGi0gaJpZM4LjCyp .