android - Swipe left/right to kill apps does stop service -


i have tried start_sticky, broadcastreceiver these things not working restart service. there other way restart service in android version 5.0 , above

start_sticky restart service take time 10 sec 10 min .. never. depends on android system memory usage.

u can implement foreground service create dialog in swipe down.this keep activity running.

apps whatsapp,facebook uses push notifications along intent service restart service when message arrives.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -