Imagine that we have the SIP stack Voip Android application, and we want to receive message, and calls in sleep mode.
By using ADB we put devices in IDLE states, and haven't any source for receiving incoming message from signaling. Neither AlarmClock, nor Service don't suite for this task! So there are no ways, to handle action in IDLE state, besides GCM! Or I'm wrong?
I explored all documentation about battery optimizing and sleep states. Google just said about Voip application interesting thing:
No, can not use GCM because of technical dependency on another messaging service or Doze and App Standby break the core function of the app.
So, what is that means? We don't need to use GCM, but always make device active, for this issues - it's ok? I just want to know, what is correct way, for listening action in sleep states in VoiP Application!
Thanks!