You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When modifying a habit reminder, selecting the frequency as "Once" causes the app to crash due to a SecurityException related to missing the SCHEDULE_EXACT_ALARM permission.
💣 Steps to reproduce
Create any habit.
Edit the habit reminder.
Set the reminder frequency to "Once".
🔧 Expected behavior
The app should handle this case properly by either requesting the required permission or falling back to a non-exact alarm scheduling method if the permission is missing.
📷 Screenshots
default.mp4
📱 Tech info
Device: generic_x86_64 (Android Studio x86 emulator)
OS: Android 12.0 (Default Android System Image, API31)
Version: [To be added manually]
📄 Additional context
Crash Log
Exception dispatching input event. (InputEventReceiver)
Exception in MessageQueue callback: handleReceiveCallback (MessageQueue-JNI)
java.lang.SecurityException: Caller rocks.poopjournal.todont needs to hold android.permission.SCHEDULE_EXACT_ALARM to set exact alarms. (MessageQueue-JNI)
at android.os.Parcel.createExceptionOrNull(Parcel.java:2426) (MessageQueue-JNI)
at android.os.Parcel.createException(Parcel.java:2410) (MessageQueue-JNI)
at android.os.Parcel.readException(Parcel.java:2393) (MessageQueue-JNI)
at android.os.Parcel.readException(Parcel.java:2335) (MessageQueue-JNI)
at android.app.IAlarmManager$Stub$Proxy.set(IAlarmManager.java:359) (MessageQueue-JNI)
at android.app.AlarmManager.setImpl(AlarmManager.java:947) (MessageQueue-JNI)
at android.app.AlarmManager.setImpl(AlarmManager.java:907) (MessageQueue-JNI)
at android.app.AlarmManager.setExact(AlarmManager.java:705) (MessageQueue-JNI)
at rocks.poopjournal.todont.utils.HabitsBottomSheetDialog.scheduleNotification(HabitsBottomSheetDialog.kt:262) (MessageQueue-JNI)
...
✍️ Describe the bug
When modifying a habit reminder, selecting the frequency as "Once" causes the app to crash due to a
SecurityExceptionrelated to missing theSCHEDULE_EXACT_ALARMpermission.💣 Steps to reproduce
🔧 Expected behavior
The app should handle this case properly by either requesting the required permission or falling back to a non-exact alarm scheduling method if the permission is missing.
📷 Screenshots
default.mp4
📱 Tech info
📄 Additional context
Crash Log