qaul / qaul.net

Internet Independent Wireless Mesh Communication App
https://qaul.net
GNU Affero General Public License v3.0
496 stars 63 forks source link

Android: change `SCHEDULE_EXACT_ALARM` permission #611

Open MathJud opened 4 months ago

MathJud commented 4 months ago

Android 14 no longer grants the SCHEDULE_EXACT_ALARM permissions. This should be therefore handled differently.

Further information: https://developer.android.com/develop/background-work/services/alarms/schedule#using-schedule-exact-permission

Playstore notification:

Your use of exact alarms is causing your app to crash for some Android users

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.