I have an intent service that constantly checks to see if the data has changed on the server. The problem is that the application remains inactive for some time, it stops receiving notifications. We suspect that the service was killed by the android.
I think that even GCMINTENTSERVICE is also killed by android for some time.
My question is how gmail / is that / yahoo mail app is always synced without a foreground notice. What kind of synchronization mechanism do they use.
Do you know about any other application that always receives a notification, even if it is in the background, so I can check with Google why it has not been killed for some time.
Google kills the gcmintentservice if it has been running for some time in backgroud.
EDIT: GCMBASEINTENTSERVICE is a service we plan to implement for push notifications, because with the help of an older polling service, the application did not receive a notification after a while. Perhaps this is due to the fact that for some time he was killed by the android. So, with push notifications will the application always receive a notification? Is Gcmbaseintentservice a service of intent, and it will also be killed by the android after a while.
source share