Contents

requestAuthorization()

Requests permission to use the alarm system if it hasn’t been requested before.

Declaration

func requestAuthorization() async throws -> AlarmManager.AuthorizationState

Discussion

If a person using your app denies authorization, all attempts to schedule alarms fail.