Saturday, 15 March 2014

gmail - Android App Architecture for checking for new mail -



gmail - Android App Architecture for checking for new mail -

i want build android app notifies user when has new mail.

i planning on using this javamail port or gmail api or combination of both.

the question have how check new mail.

i have background service when app not running keeps polling new mail service sense bad because

frequent polling wasteful, specially when comes battery usage if polling frequency not high plenty other mail service clients far superior since notify user of incoming mail service before app.

any ideas on how solve problem without having build entire backend offloads task?

unfortunately there no mechanism receive updates automatically when new mail service arrives. recommend logging enhancement request force notification back upwards in api in apps api issue tracker. in lieu of this, can minimize resource utilization doing total sync once, , keeping track of history id , doing partial syncs point.

android gmail javamail imap gmail-api

No comments:

Post a Comment