Skip to content

Commit fe78b8f

Browse files
authored
Merge pull request #224 from Unity-Technologies/prepare-2-1-0
Prepare 2.1.0
2 parents ae2ca03 + 0d952b0 commit fe78b8f

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

com.unity.mobile.notifications/CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,22 @@
22

33
All notable changes to this package will be documented in this file.
44

5-
## [2.1.0] - 2022-09-01
5+
## [2.1.0] - 2022-09-23
66

7-
TODO
7+
### Changes & Improvements:
8+
- [Android] - Notification scheduling is made faster.
9+
- [Android] - Notifications can be set to not be shown when app is in foreground (contributed by InnoGames).
10+
- [Android] - Support for Android 13 notification permission.
11+
- [Android] - Support for exact scheduling on Android 12 and newer and ability to disable it.
12+
- [iOS] - Updated AuthorizationStatus enum with new values.
13+
- [iOS] - Location trigger now uses more accurate latitude/longitude and can repeat.
14+
- [iOS] [issue 202](https://github.com/Unity-Technologies/com.unity.mobile.notifications/issues/202) Added support for different sound types and notifications without sound.
15+
16+
### Fixes:
17+
- [Android] - Scheduled notifications are saved in more lightweight and reliable way.
18+
- [Android] [issue 196](https://github.com/Unity-Technologies/com.unity.mobile.notifications/issues/196) Fix occasional Resources$NotFound exception.
19+
- [Android] [issue 198](https://github.com/Unity-Technologies/com.unity.mobile.notifications/issues/198) Fix occasional OutOfMemoryError.
20+
- [iOS] - When using Calendar trigger time type (Local/UTC/...) will be preserved.
821

922
## [2.0.2] - 2022-05-13
1023

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:

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Unity Mobile Notifications package adds support for scheduling local one-tim
44

55
### Requirements
66

7-
- Compatible with Unity 2019.4 or above.
7+
- Compatible with Unity 2020.3 or above.
88
- Compatible with Android 5 (API 21) and iOS 10.0+.
99

1010
### Supported features
@@ -21,6 +21,8 @@ The runtime notification APIs are split into two parts for both Android and iOS.
2121
* Use the Apple Push Notification Service (APNs) to receive remote notifications.
2222
* Modify remote notification content if the device receives notifications from other apps while your app is running.
2323
* Group notifications into threads (only supported on iOS 12+).
24+
* Add attachments to notifications.
25+
* Support for notification actions.
2426

2527
### Installing
2628
To install the Mobile Notification package, please follow the instructions in the [Package Manager documentation](https://docs.unity3d.com/Packages/com.unity.package-manager-ui@latest/index.html).

0 commit comments

Comments
 (0)