I need to set a repeating alarm every X hours that would even fire in doze mode. However, the only Apis available in AlarmManager for Android 23 are setExactAndAllowWhileIdle and setAndAllowWhileIdle which are not for repeating alarms.
I am wondering if I should reschedule the alarm every time it fires? or is there any better solution?
setExactAndAllowWhileIdle
and set a repeating alarm every X interval that would even fire in doze mode. Does anyone has a sample how can I do that. – Viccora