AlarmManager not working in several devices

后端 未结 14 2080
走了就别回头了
走了就别回头了 2020-11-30 18:34

My app uses AlarmManager and it has been working since 4 years ago. But I noticed it started failing in some devices.

I\'m pretty sure code is right (I\'m using Wak

14条回答
  •  天涯浪人
    2020-11-30 18:55

    I don't think killing the app will prevent the alarm manager from waking your app.

    Its only when you "force stop" or disable the app you don't receive call backs from alarm manager.

    The root cause might be something else.

    Also on M... setExactAndAllowWhileIdle does throttling...that is if u schedule an alarm every 2 mins it won't be triggered. ..There needs to be 15 mins window. .

提交回复
热议问题