Apps val manager: AlarmManager = context.getSystemService(AlarmManager::class.java) when { manager.canScheduleExactAlarms() -> { // If permission is granted, proceed with scheduling exact alarms manager.setExact(...) } else -> { // Ask users to go to exact alarm page in system settings startActivity(Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM)) } } Core Functionality