Flutter rest timer fix: avoiding Android 14 exact alarm Settings jump and silent alarms
A developer's offline gym log app opened Android's Alarms & reminders settings page after the first set on Android 14, because the call to requestExactAlarmsPermission() sent users out of the app. Exact alarm permission on Android 12 and later has no runtime dialog, so the only route is a system settings switch that most users never turn on. The app also used an alarmClock schedule mode that required that permission, so for many users the rest alarm never rang at all, and errors were logged silently. The developer removed the Settings request, checked whether exact alarms were allowed before scheduling, and fell back to an inexact alarm mode when they were not. The trade-off is that inexact alarms may fire slightly late during device Doze, which is considered acceptable for a short rest timer.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in