Android notifications on background service -


i'm developing app shows notifications recursively. user can define how want receive notifications , background service controls recursive handler time know when send notifications.

the problem when android's memory manager destroys service when deems necessary , application stops sending notifications.

how can send notifications background service , avoid android's memory manager destroys it? idea?

you can use startforeground() mark service important system.

you can set flag if killing service disruptive user, such if service performing background music playback, user notice if music stopped playing.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -