Srihari1904
Lurker
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.
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.