简体   繁体   中英

Run a service (push notif) in a exact time repeatedly even if phone is in doze mode

I want to run a service (push notification) in a specific time every day even if phone is in a doze mode l. Using alarm manager with method of setExactAndAllowWhileIdle() has two issues first it just support sdk 23 and upper, second it cannot be repeated for every day

By the way, you should reschedule new alarm for next day after the time for this one comes.

And also you should note, that even this method of AlarmManager could be blocked in Doze mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM