android - Scaling GCM Push. How often can you perform GCM Push? -


everybody tells me polling server new data stupid if server yours , should implement push gcm instead. well, agree , have done but, wondering, how can or should perform push?

i have simple app people post stuff server , have feed of else's posts. method on server saving database triggers gcm push @ end, google sends out push notifications , requeries server new posts, containing post weve made.

but, if have, lets milion users , new post created lets every minute. mean app connect server every minutes , kill battery. question is, how perform push? wouldnt in case polling every 10 minutes better battery, right?

i know example kind of crazy, having milion people in feed, make point, because cant imagine how scale. figure google handle sending million gcm messages @ once no problem.

so question is, there limit after push contraproductive? guess kind of first world problem :d cant imagine facebook handles stuff this.

thanks!

push notifications welcome when server has important new data show user (and important mean important user).

i believe if app sent me notification every minute either disable notifications app or uninstall app. should carefull when deciding updates send users push notifications, in order not antagonize them. if server can send push notifications same device, must have settings options in app can reduce frequency of notifications.

push notifications relevant when app not running (or running in background). when running in foreground, polling server better solution (given disclaimer can't rely on push notifications being delivered every time).

in example, i'm not sure i'd want notified automatically each new post in db. while i'm using app (i.e. it's in foreground) wouldn't want update new posts automatically. facebook don't update view automatically (they show on top of screen have new posts, , have pull list view down in order load them. , when app not running, i'd want alerted important posts (for example, posts specific users). when app sends me many push notifications, go settings reduce them.

i can't give numeric figure of reasonable frequency of push notifications, hope answer helps. in short, don't have worry gcm's technical limits. should worry user experience.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -