Skip to content

Commit 0d952b0

Browse files
committed
Add docs about exact scheduling
1 parent 436d1c1 commit 0d952b0

File tree

1 file changed

+10
-0
lines changed
  • com.unity.mobile.notifications/Documentation~

1 file changed

+10
-0
lines changed

com.unity.mobile.notifications/Documentation~/Android.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ After you create a notification channel, you can't change its behavior. For more
2323

2424
On devices that use Android versions prior to 8.0, this package emulates the same behavior by applying notification channel properties, such as `Importance`, to individual notifications.
2525

26+
## Schedule notifications at exact time
27+
28+
Before Android 6.0 notifications can be scheduled only at approximate time.
29+
30+
Since Android 12.0 (API level 31) android.permission.SCHEDULE_EXACT_ALARM permission has to be added to the manifest to enable exact scheduling, see [documentation](https://developer.android.com/reference/android/Manifest.permission#SCHEDULE_EXACT_ALARM).
31+
32+
Since Android 13.0 (API level 33) the android.permission.USE_EXACT_ALARM is and alternative permission to enable exact scheduling.
33+
34+
Android recommends to not use exact scheduling due to higher power consumption it entails. Use notification settings in Unity to enable the automatic addition of the mentioned permissions or to always use inexact scheduling.
35+
2636
## Request permission to post notifications
2737

2838
Starting with Android 13.0 (API level 33) notifications can not be posted without users permission. They can still be scheduled, but will work silently with no UI shown to the user. You can request the permission by running this method in the coroutine:

0 commit comments

Comments
 (0)