79215162

Date: 2024-11-22 13:19:39
Score: 0.5
Natty:
Report link

SCHEDULE_EXACT_ALARM, the permission introduced in Android 12 for apps to schedule exact alarms, is no longer being pre-granted to most newly installed apps targeting Android 13 and higher (will be set to denied by default)

Starting Android 13, you need to request SCHEDULE_EXACT_ALARM permission as it's no longer granted by default. Schedule the alarm only if permission is granted. You can check the sdk version before scheduling the alarm. If Android 12 or below, schedule it as usual, if 13 & above, check permission and schedule alarm only if permission is available

schedule-exact-alarms

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user27894462