Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented Jan 30, 2019

Android doesn't automatically reschedule alarms after a reboot, so
alarms set using this plugin would have to be scheduled manually after
each reboot. With this change, alarms scheduled with the 'rescheduleOnReboot'
flag set to true will be rescheduled at boot.

* Updated android_alarm_manager to fix issues with "background start not
allowed" when attempting to start AlarmService while backgrounded.
  * Switched to using a combination of BroadcastReceiver and
  JobIntentService from using a Service (launching a Service from an
  alarm Intent causes the "Background start not allowed" on Android 8+)

* Alarm events received before the AlarmService isolate is finished
initializing are now queued and processed once the isolate is
initialized.

* Updated CHANGELOG.md and README.md with new setup steps.

* Bumped version to 0.4.0.

Fixes #26846.
Android doesn't automatically reschedule alarms after a reboot, so
alarms set using this plugin would have to be scheduled manually after
each reboot. With this change, alarms scheduled with the 'rescheduleOnReboot'
flag set to true will be rescheduled at boot.
@bkonyi
Copy link
Contributor Author

bkonyi commented Jan 30, 2019

cc @Hixie

@Hixie
Copy link
Contributor

Hixie commented Feb 3, 2019

Thanks!

I'll defer to someone more familiar with the plug-in architecture do a thorough review.

@bkonyi bkonyi merged commit 2c78fda into master Feb 5, 2019
@bkonyi bkonyi deleted the alarm_manager_boot_completed branch February 5, 2019 00:20
andreidiaconu pushed a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
Added support for persisting alarms across reboots.

Android doesn't automatically reschedule alarms after a reboot, so
alarms set using this plugin would have to be scheduled manually after
each reboot. With this change, alarms scheduled with the 'rescheduleOnReboot'
flag set to true will be rescheduled at boot.
andreidiaconu added a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
karantanwar pushed a commit to karantanwar/plugins that referenced this pull request Feb 19, 2019
Added support for persisting alarms across reboots.

Android doesn't automatically reschedule alarms after a reboot, so
alarms set using this plugin would have to be scheduled manually after
each reboot. With this change, alarms scheduled with the 'rescheduleOnReboot'
flag set to true will be rescheduled at boot.
karantanwar pushed a commit to karantanwar/plugins that referenced this pull request Feb 19, 2019
Added support for persisting alarms across reboots.

Android doesn't automatically reschedule alarms after a reboot, so
alarms set using this plugin would have to be scheduled manually after
each reboot. With this change, alarms scheduled with the 'rescheduleOnReboot'
flag set to true will be rescheduled at boot.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants