android - How much battery does receiving a GCM message use? -


if receive gcm message in broadcastreceiver , basic logic, how battery use? thinking around ~30 messages per day. data?

edit: understand different devices have different battery sizes , cpu efficiencies, etc. i'm not asking precise percentage used, more "you should worry that" vs "you don't have worry".

the logic involves reading long db (last sync time) , comparing current time.

the messages received in span of ~4 minutes.

edit2: guess asking is worth limit/batch amount of push notifications server sends? ideally, ignoring battery life, want server should send push notification every time new data gets updated. phone can decide whether or not pull updates server. if doesn't decide pull, @ least phone knowingly decided not update data. opposed if limit amount of times server sends push notifications phone tell there new data, phone thinks has updated data doesn't.

"you don't have worry" answer. gcm services 1 process manage push notification android app. sure better many different apps ask continuosly remote server new messages. use battery percentage, less other way


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -