Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking SCHEDULE_EXACT_ALARM permission #240

Open
Efimj opened this issue Jan 26, 2024 · 0 comments
Open

Checking SCHEDULE_EXACT_ALARM permission #240

Efimj opened this issue Jan 26, 2024 · 0 comments

Comments

@Efimj
Copy link

Efimj commented Jan 26, 2024

When the user or system revokes SCHEDULE_EXACT_ALARM permission, the user will receive an exception when attempting to create an notification.

I’m also sure that you need to listen to the Broadcast Receiver for the SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED event in order to reschedule saved notifications

Exception:
stacktrace: java.lang.SecurityException: Caller com.noto needs to hold android.permission.SCHEDULE_EXACT_ALARM or android.permission.USE_EXACT_ALARM to set exact alarms.

Example of my implementation:
app/src/main/java/com/jobik/shkiper/services/notification_service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant