cordova-plugin-local-notification
Advanced tools
Changelog
Version 1.1.3 (15.02.2025)
ArrayIndexOutOfBoundsException
can occur, if the user dismisses a permission request without clicking a button
Changelog
Version 1.1.2-dev
getUnusedAppRestrictionsStatus
: Gets the status of the unused app restrictions statusopenManageUnusedAppRestrictions
: Opens the settings for controlling the unused app restrictions statusChangelog
Version 1.1.1 (24.01.2025)
SCHEDULE_EXACT_ALARM
is not pre-configured anymore by this plugin to have more flexibility. If you want exact alarms, see Schedule exact alarms.USE_EXACT_ALARM
to set your app as a calendar or alarm clock app. See Exact alarms: Define your app as a Calender or Alarm Clock appvibrate
to androidChannelEnableVibrationres://
, www
and shared://
for attachments and attachments.personIconfalse
.check
to hasPermission
to make it consistent with cordova.plugins.notification.local.hasPermission
Changelog
Version 1.1.0 (23.12.2024)
default-channel-id
to default_channel
java.lang.IllegalStateException: Maximum limit of concurrent alarms 500 reached
, when canceling notifications and schedule new notifications
LOCKED_BOOT_COMPLETED
LOCKED_BOOT_COMPLETED
is executed, when the device was booted, but not yet unlocked by the user (e.g. the device is looked by a pin). To use this feature, the device encrypted storage has to be used, which is accessible by context.createDeviceProtectedStorageContext()
. This has first to be implemented and was not implemented.SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED
when app is closed and not only in the backgroundmediaSession
and the corresponding MediaStyle. This was not functional and also needed the extra Android library android:media
.http
, https
. You can use for this the shared dirctory and a shared:
uri.file:///
. file uris should not be used in Android.content:
. You can instead use a shared:// uri.cordova-plugin-badge
and ShortcutBadger
. These were only used for Android. Android can handle the badging itself and does not need a 3rd party library. You can configure the behaviour by the badgeNumber property.FLAG_IMMUTABLE
on every Android version
notification
and correct package declaration de.appplant.cordova.plugin.notification
to de.appplant.cordova.plugin.localnotification
androidx.core:core
package version 1.12.0
for using NotificationManagerCompat
ANDROIDX_CORE_VERSION
.kotlin-bom
to fix duplicate classes errors.com.android.support:support-v4
from plugin.xml
android:media
Library: This was used for MediaSytle, which was removed.jcenter
. The appeareance of jcenter
as a repository, produced the gradle warning Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
TriggerReceiver.class
, so it's easier to cancel alarms.cordova-ios
version 8.0.0
package.json
: Correct incorrect cordova-ios
dependency
10.0.0
was referenced, but the maximum available version currently is 7.1.1
0.9.0-beta.3
Some properties were changed. See Changes since version 1.1.0
request
to requestPermission
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)