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

SCHEDULE_EXACT_ALARM permission cannot be enabled #545

Open
waelvilla opened this issue Dec 6, 2024 · 2 comments
Open

SCHEDULE_EXACT_ALARM permission cannot be enabled #545

waelvilla opened this issue Dec 6, 2024 · 2 comments
Labels

Comments

@waelvilla
Copy link

waelvilla commented Dec 6, 2024

Problem Description

After upgrading to version 4.2.0, we are no longer able to use the SCHEDULE_EXACT_ALARM permission as intended. Specifically:

  • When the user is directed to the settings to enable "Alarms & Reminders," the toggle for this permission is disabled and cannot be activated.
  • This behavior did not occur in version 4.1.10, where the permission worked as expected.

Use Case

Our app requires exact alarms but does not fall under the definition of a dedicated alarm app. As a result, we cannot declare the USE_EXACT_ALARM permission in our AndroidManifest.xml. Instead, we rely on the SCHEDULE_EXACT_ALARM permission, which aligns with our use case and allows users to grant this capability explicitly via system settings.

Your Environment

  • Plugin version: 4.2.0 to 4.2.6
  • Platform: Android
  • OS version: 14
  • Device manufacturer / model: Samsung
  • React Native version (react-native -v): 0.75
  • Plugin config

Expected Behavior

The user should be able to enable the "Alarms & Reminders" toggle in the system settings when the app requests the SCHEDULE_EXACT_ALARM permission,

Actual Behavior

The "Alarms & Reminders" toggle in the system settings is disabled and cannot be toggled on after updating to versions 4.2.0 to 4.2.6.

Steps to Reproduce

  1. Declare <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> in AndroidManifest.xml
  2. Request the permission from the user, which opens the system settings page with the toggle disabled (See screenshot).
Screenshot 2024-12-04 at 14 08 04

Context

We have a medical app that includes a feature for creating medication reminder notifications. These notifications need to be displayed at the exact expected timing. However, as we are not solely an alarms app, we cannot declare the USE_EXACT_ALARMS permission.

Debug logs

N/A

@waelvilla
Copy link
Author

I also saw this similar issue here that went stale #507

Copy link

github-actions bot commented Jan 6, 2025

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant