Android Alarm Manager setExactAndAllowWhileIdle() not working in Android 7.0 Nougat in Doze mode

后端 未结 3 1576
滥情空心
滥情空心 2020-12-25 14:24

I am trying to make an alarm fire in my app every 30 minutes using Alarm Manager\'s setExactAndAllowWhileIdle but it is not working!

I test the function

3条回答
  •  渐次进展
    2020-12-25 14:56

    I got the same problem as you, and searches a long time for an solution. But I doesn't find a general solution.

    A solution for Samsung devices is available: Android AlarmManager not working on some devices when the app is closed

    The first answer works not, but the second one :)

提交回复
热议问题