GCM not waking up device

后端 未结 3 957
不思量自难忘°
不思量自难忘° 2021-02-20 00:27

I developing a GCM application. Everything works fine when the device is not idle (i.e. sleeping by pressing the power button). However, when I send the message when the device

3条回答
  •  再見小時候
    2021-02-20 01:11

    Server side need this code;

        builder.delayWhileIdle(false);
    

    it's mean that no wake up phone on deep sleep. but received message.

    then when wake up user phone, generated new intent for GCMIntentService.

提交回复
热议问题