25

Exact alarm improvements-Android12

 2 years ago
source link: https://proandroiddev.com/exact-alarm-improvements-android12-65217094e5fa
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Responses (1)

Also publish to my profile

There are currently no responses for this story.

Be the first to respond.

In this article, we will go through the improvements that Android12 brings for Exact alarms ⏰.

  • To make sure that the effective usage of system resources, Android 12 requires the “Alarms & reminders” special app access if apps that target Android 12 want to set exact alarms.
  • SCHEDULE_EXACT_ALARM permission needs to be added in the manifest to get this special app access.
  • Exact alarms should only be used for user-facing features. Acceptable use cases

Users or the system can revoke the “Alarms & reminders” special app access. All future exact alarms are canceled when the “Alarms & reminders” special app access is revoked for your app.

  • The system sends the ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED broadcast to your app when the “Alarms & reminders” special app access is granted to your app.
  • It will be sent to both runtime receivers and manifest receivers.
  • It will not be sent when the user revokes the permission.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK