Issue with Alarm wakeup after phone restart and switch off and on

itscrazylife

New member
Dec 19, 2015
0
0
0
Visit site
Hello Guys,

We are developing one application which deal with AlarmManager class. We schedule alarm and app wake up at specific time and do some stuff.

It works fine when there is no restart or Switch on and Off on mobile. but all alarm get cleared when we restart or turn off and on the phone this is because the AlarmManager class it self says.

Registered alarms are retained while the device is asleep (and can optionally wake the device up if they go off during that time), but will be cleared if it is turned off and rebooted.

To solve this issue we have implemented custom logic which is below one:

When restart or On and off occurs, at the boot complete event we fetching alarm from database and register/set them back so they can run as scheduled.

we already give below two permissions:

QUICKBOOT_POWERON
BOOT_COMPLETED

Now the problem is the custom login works well with many Samsung, Lenova, Intex and some other phones but some how the process that set back alarm after boot completion not executing on client's phone.

client has ASUS and Samsung Galazxy S4!

So any clue to fix this issue will be really helpful!

Thanks in advance!!
 

Members online

Forum statistics

Threads
943,144
Messages
6,917,506
Members
3,158,841
Latest member
kirk781