Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Pre-launch report: Your use of exact alarms is causing your app to crash for some Android users

Open
#112 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android
Domain
mobile

Research direction

Start with packages/capacitor-plugin/android/src/main/java/io/ionic/backgroundrunner/plugin/api/Notifications.kt around lines 192–194 and compare its exact-alarm permission check with the Android 14 documentation. Review the SCHEDULE_EXACT_ALARM declaration in AndroidManifest.xml and reproduce the pre-launch crash if possible. Done means exact alarms no longer crash when the permission is unavailable.

Written by the indexing model from the issue text.

Description

I submitted my app to the Play Store, and it was rejected due to crashing. The cause:

Your app schedules exact alarms without checking whether the SCHEDULE_EXACT_ALARM permission has been granted. This is causing your app to crash for users on Android 14 because the permission is no longer granted by default.

In most cases, alternative methods of scheduling work or inexact alarms are more appropriate. If your use of exact alarms is justified, update your app so that it checks this permission is granted before scheduling.

I checked the official docs. They say check canScheduleExactAlarms() first. However the code seems to indeed do so.

https://github.com/ionic-team/capacitor-background-runner/blob/c290f3cd6372453b2679a4255f822fc91664fe77/packages/capacitor-plugin/android/src/main/java/io/ionic/backgroundrunner/plugin/api/Notifications.kt#L192-L194

I have added <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
to AndroidManifest.xml, as specified in the docs.

Dominant language
C
Stars
56
Forks
36
Avg merge
3d 17h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/capacitor-background-runner

All issues in ionic-team/capacitor-background-runner

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.