2

So I have alarm that when triggers it shows notification and sets up the same alarm with setExactAndAllowWhileIdle for next hour, but during night, like after successfully firing alarm 1 am, 2 am, then on 3 am alarm doesn't trigger, and of course of that it doesnt shows for next hourse, because it didnt set up new ones. When i wake my device at 8:15 am, it triggers this alarm.

Android 7.0, tested on Huawei P9

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Jahusek
  • 117
  • 11

1 Answers1

1

Huawei has something called Protected Apps, that can be accessed from the phone settings (Battery Manager > Protected Apps). Try adding your app to this list to keep it running after the screen is turned off.

d777
  • 100
  • 1
  • 2
  • 10