paho.mqtt.android icon indicating copy to clipboard operation
paho.mqtt.android copied to clipboard

"Is it possible to remove the USE_EXACT_ALARM permission?

Open yuhouzhizhu opened this issue 1 year ago • 2 comments

"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?"

yuhouzhizhu avatar Jul 29 '24 08:07 yuhouzhizhu

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

IamLRBA avatar Oct 24 '24 22:10 IamLRBA

Maybe use this https://github.com/hannesa2/paho.mqtt.android/releases/tag/4.3 it's without this permission

hannesa2 avatar Feb 11 '25 05:02 hannesa2