Thursday, 15 May 2014

android - Google Cloud Messaging Server response slow (1 minute) -



android - Google Cloud Messaging Server response slow (1 minute) -

i have webserver sends via php notifications gcm developed android app users. there 3000 users, users receive 20 notifications per day.

it worked more 1 year, since 5 days see response time of phone call "https://android.googleapis.com/gcm/send" 1 min instead of less 1 sec before. , still notifications arrive @ users.

it developed in next way: http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

i disabled sending of notifications more 1 day. started again, , minutes googleapis responded usual, 1 time again response time of 60 seconds.

it looks google doing on purpose, not know why?

try running :

curl https://apis.google.com/

and

curl https://apis.google.com/ --ipv4

if 2nd 1 ran faster , disable ipv6 on server, maybe isp of server doesn't back upwards ipv6 yet leads 1-2 min delay before times out , switches ipv4 again.

another issue ran lately throttling gcm: how avoid throttling

basically google throttle force messages if send many messages same user in short period of time. "save battery" , "bandwidth" (probably ones) ... remember if want send info device more 10 times min , while user using app, improve open direct tcp connection between user , server :)

android google-app-engine google-cloud-messaging

No comments:

Post a Comment