• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android alarm manager is not triggering in few devices which phones is locked for long time

I want to reset some shared preference values in the app to zero by 12 am midnight. Android alarm manager is not triggering in a few devices (1+, OPPO) which phones are locked for a long time.

My code is this

"alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), (syncInterval), pendingIntent);" // For Sync every hour

"alarmManager.setExact(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), pendingIntent);" // For reset EOD

any help/suggestions are highly appreciated. Thanks in advance.
 
Back
Top Bottom