Description
Dear,
The App worked in my the tests of reboot and firing several alarms schedule at once, launching the app from the background, without having to open it.
After more tests. the issue is the inclusion of more alarms after the firing. The App works fine when I include several alarms at the moment I install it but after firing all alarms in it, the inclusion of more alarms is only firing when I opened the app. Looking at StackOverflow the causes of AlarmManeger are only firing when I launch the App, I found out about "pending request code". When I look at Service.class I find that the request code in PendingIntent.getActivity is 0, but in Alarm.class each alarm is stored as alarmId in two PendingIntent.getBroadcast.
I transferred the alarmId to Service intent and put FLAG_UPDATE_CURRENT in the getBroadcast but didn't work. But I would like to point out about the request code on the service.