fix(todo): reminders at the minute on Android 13 on, through USE_EXACT_ALARM (ADR 0033, D31)
SCHEDULE_EXACT_ALARM is off from Android 14 on until the person allows it in Alarms & reminders, so every reminder was scheduled inexact and could come minutes late. USE_EXACT_ALARM is granted with the install to an app reminding of what a person planned, and AlarmManager.canScheduleExactAlarms (which flutter_local_notifications' canScheduleExactNotifications asks) is true with it, so reminders are exactAllowWhileIdle. SCHEDULE_EXACT_ALARM stays for Android 12 and 12L, which don't know the other, up to API 32. Whats-New: Reminders arrive on the minute. Whats-New-De: Erinnerungen kommen auf die Minute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
574b379f11
commit
d49331b210
1 changed files with 50 additions and 5 deletions
|
|
@ -3,12 +3,19 @@
|
|||
<!-- The app talks to its instance: release builds need this too (Flutter's
|
||||
template grants it to debug and profile builds only). -->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<!-- Tasks' reminders (ADR 0033, D5): shown (POST_NOTIFICATIONS comes with
|
||||
flutter_local_notifications), scheduled again after a restart, and at
|
||||
the minute where the person allows exact alarms (Android 14 leaves
|
||||
them off; without, Android may bring a reminder a few minutes late). -->
|
||||
<!-- Tasks' reminders (ADR 0033, D5, D31): shown (POST_NOTIFICATIONS comes
|
||||
with flutter_local_notifications, asked once a reminder is planned),
|
||||
scheduled again after a restart, and at the minute: from Android 13 on
|
||||
through USE_EXACT_ALARM, granted with the install to an app reminding
|
||||
of what a person planned; on 12 and 12L, which don't know it, through
|
||||
SCHEDULE_EXACT_ALARM, granted there unless taken back, and declared up
|
||||
to API 32 alone (from 14 on it is off until the person allows it in
|
||||
Alarms & reminders; without exact alarms a reminder may come minutes
|
||||
late). -->
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/>
|
||||
<uses-permission android:name="android.permission.USE_EXACT_ALARM"/>
|
||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"
|
||||
android:maxSdkVersion="32"/>
|
||||
<!-- A task's title dictated in quick add (ADR 0033, D29): the microphone,
|
||||
asked for once the person taps it, and the device's speech recogniser,
|
||||
which Android 11 and later only shows the app when it is declared
|
||||
|
|
|
|||
Loading…
Reference in a new issue