Android VOIP Dose Behavior

I am working on an old VOIP application on Android. It does not use Google Cloud Messaging technology right now, but simply retains its own TCP connection forever.

Google recently introduced a preview version of Android M with Doze Mode

So, the question is: is there any workaround how the application can receive incoming calls / messages in the "Dose" mode without redesigning the entire system to use GCM?

+7
android android-6.0-marshmallow android-networking push-notification google-cloud-messaging
source share
2 answers

You can use ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS so that user rights are ignored when optimizing the battery. However, double-check Optimization for Doze and App Standby , it looks like it is only allowed for corporate VoIP / IM (see questions # 33114063 and # 31154128 )

+3
source share

No, GCM seems to be the only way. See a Big Analysis of Problems with Dose Modes, including Network and GCM: https://commonsware.com/blog/2015/06/03/random-musing-m-developer-preview-ugly-part-one.html

0
source share

All Articles