requestExactAlarmsPermission method

Future<bool?> requestExactAlarmsPermission()

Requests the permission to schedule exact alarms.

Returns whether the permission was granted.

Use this when your application requires the SCHEDULE_EXACT_ALARM permission and targets Android 13 or higher. The reason for this is that applications meeting this criteria that run on Android 14 or higher will require the user to grant permission. See here for official Android documentation.

Implementation

Future<bool?> requestExactAlarmsPermission() async =>
    _channel.invokeMethod<bool>('requestExactAlarmsPermission');