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

"Is it possible to remove the USE_EXACT_ALARM permission? #513

Open
yuhouzhizhu opened this issue Jul 29, 2024 · 1 comment
Open

"Is it possible to remove the USE_EXACT_ALARM permission? #513

yuhouzhizhu opened this issue Jul 29, 2024 · 1 comment

Comments

@yuhouzhizhu
Copy link

"Google Play requires targetSdkVersion 34 or higher and has strict requirements for the USE_EXACT_ALARM permission, including filling out permission declarations and providing a video. However, MQTT operates as a background service, and screen recording isn't effective. Are there alternative technologies to replace AlarmManager?"

@IamLRBA
Copy link

IamLRBA commented Oct 24, 2024

Hello @yuhouzhizhu , to comply with Google Play's target SDK requirements, particularly the restrictions around the USE_EXACT_ALARM permission, you will need to consider alternative technologies for scheduling background tasks without relying on AlarmManager. Since your application uses MQTT, which operates as a background service, and you're dealing with background task scheduling, some potential alternatives include:
-Work Manager
-JobScheduler
-Firebase Cloud Messaging
-Foreground Service with Notification
-ScheduleExecutorService
etc

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

2 participants