|
|
|
|
|
by snipem
2842 days ago
|
|
Another difficulty was caused by the Doze mode, introduced in Android M. The Doze, which is turned on after a period of inactivity, among other things prevents background processes to access the network. As you can imagine, this prevents our app from receiving notifications. We mitigate this problem by asking users to make an exemption from battery optimisations for our app. It worked fairly well. This is why we were migrating to FCM from our own custom built MQTT solution that was invented back in 2012. |
|
Edit: Would anyone care to explain how I am wrong in addition to downvoting me? If Doze blocks network connections to your app when it is backgrounded, how can it receive MQTT events?