cordova-plugin-local-notification
Advanced tools
Changelog
Version 1.0.0 (17.08.2024)
This Release contains mainly changes and fixes for the Android platform.
PendingIntent.FLAG_IMMUTABLE
SCHEDULE_EXACT_ALARM
permission, which is necessary for scheduling exact alarms since Android 12 (API 31). It is only pre-granted on Android 12. On Android 13 and newer, the user must grant the permission in the "Alarms & Reminders"-setting, if you still want exact alarms. If the permission is not granted, notifications will be scheduled inexact, which is still ok for the normal case.POST_NOTIFICATIONS
permission in Android 13 (API 33)canScheduleExactAlarms(successCallback, scope)
- Android only. Checks if the user has enabled the "Alarms & Reminders"-setting. If not, the notificiatons will be scheduled inexact, which is still ok and will only be delayed by some minutes.
true
in the successCallback
.openAlarmSettings(successCallback, scope)
- Android only. Opens the "Alarms & Reminders"-settings as an Activity when running on Android 12 (SDK 31) or later, where the user can enable exact alarms. On Android older then 12, it will just call the successCallback
, without doing anything. This method will not wait for the user to be returned back to the app. For this, the resume
-event can be used. The callback will just return OK
, after starting the activity.
openNotificationSettings(successCallback, scope)
- Opens the notifications settings of the app on Android 8 and newer. This method will not wait for the user to be returned back to the app. For this, the resume
-event can be used.
personIcon
text
is filled with an Array
instead of a String
.text
. (PR #1781)
titleCount
to modify the count text of messages in a notification. The placeholder %n%
can be used for inserting the messages count. If nothing is set, the text (%n%)
will be used.compile()
with implementation()
in localnotification.gradle
, because starting on Gradle 7.0 the compile-method is removed and will produce errors, like Could not find method compile() for arguments...
A lot of changes were adopted from moodlemobile. Thanks for the work!
Changelog
Version 0.8.4 (04.01.2016)