Push not working on Android

47 views
Skip to first unread message

Carlos Verdier

unread,
Oct 5, 2016, 8:44:08 AM10/5/16
to CodenameOne Discussions
Hi

I'm getting this response trying to push to Android devices

[{"error":"Exception while connecting to GCM: java.io.IOException: Could not post JSON requests to GCM after 3 attempts"}]

Any idea? I've double checked Google Auth Key and Google Push Key. Seems to be fine...

BTW I can receive push on iOS but with no sound.

Thanks

Shai Almog

unread,
Oct 5, 2016, 10:53:48 PM10/5/16
to CodenameOne Discussions
Hi,
is it possible that this is a device that you sent pushes to and got errors from in the past?
Are you batching device pushes?

Carlos Verdier

unread,
Oct 6, 2016, 4:58:08 AM10/6/16
to CodenameOne Discussions

is it possible that this is a device that you sent pushes to and got errors from in the past?

No, the device is new and it's the first time I try pushing to it
 
Are you batching device pushes?

The app is in development and there are only 2 devices in the database, so no need to batch.

As I said, pushes are reaching iOS (no sound) but not Android. 

Shai Almog

unread,
Oct 6, 2016, 9:39:47 PM10/6/16
to CodenameOne Discussions
In that case it's probably a configuration issue with GCM and the app.
It's always painful to setup push the first time around.

Carlos Verdier

unread,
Oct 7, 2016, 8:29:00 AM10/7/16
to CodenameOne Discussions
Ok, thank you, it's working now. They have changed the config steps and I was totally lost.
Reply all
Reply to author
Forward
0 new messages