1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

Discussion in 'Android Development' started by Srihari1904, Jun 18, 2019.

  1. Srihari1904

    Srihari1904 Lurker
    Thread Starter

    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.
     


Loading...

Share This Page

Loading...