laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

Push Notifications not working

Hi Katya:

I have scanned with two phones generated code!

But there is only one registered.

Image

I can't delete the row because if no messages arrive

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

Push Notifications not working

any news?

Thanks!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Notifications not working

Hello! Sorry, not yet... Still working on it.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

Push Notifications not working

Ok! thanks Maryna!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Notifications not working

Hope to post an update soon...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Notifications not working

Hello! Please check if you've specified correct Sender ID and API Key in App settings - Push notifications - Android Settings. Please also ensure you've setup correctly https://code.google.com/apis/console/

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

Push Notifications not working

Yes my code is correct.

But I have in my db: Image

I think that is this the problem.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push Notifications not working

Hello!
Token undefined value means you have incorrect Sender ID or API Key. Please check it.

Amanda
Posts: 0
Joined: Fri Jan 17, 2014 5:33 am

Push Notifications not working

I also get the InvalidRegistration error with an Android device. It is working in iOS. I triple-checked my Sender ID and API Key. In the database, this device shows "Class not found" for deviceID and "undefined" for token. I deleted the row from the database, uninstalled and reinstalled the app on the device, and the row was re-created in the database exactly the same.

Interestingly, my app also has code in it that allows users to select channels, and that works even on Android. I am sending a PUT request to https://api.appery.io/rest/push/reg/, and when I do that on the Android device, the channels do update in the database even though the token and deviceId are still "undefined" and "Class not found".

I need to be able to push notifications to Android. Is this still a bug?

Amanda
Posts: 0
Joined: Fri Jan 17, 2014 5:33 am

Push Notifications not working

Follow up: I exported to Eclipse and ran the project from there. When run that way, a new row was added to the device database with a real token. The deviceId says null;c92... So, that's much better.

When I send a push notification, I do not get an error anymore. The list of "scheduled notifications" says "sent". But I do not see the notification on the phone, either. I checked the application settings on the phone and it does say "Show notifications". So I'm not sure why it doesn't get the notifications.

Return to “Issues”