- Changed gradle compile to implementation
- Upgrade ShortcutBadger to v1.1.22
- Added
appShortcutBadgerCustom
gradle switch. - Upgrade ShortcutBadger to v1.1.21
- Added
isSupported
to check support at runtime (on Android).
- Added polyfill for Object.assign to fix issue on Android.
- Upgrade ShortcutBadger to v1.1.19
- BadgeImpl class can now be used from other Android plugins.
- Fix autoClear for desktop platforms.
- Support for download and circular indicator on OSX.
Based on https://github.com/hokein/DockProgressBar
- Fix threading warnings with iOS 11
- Fix package.json to work with latest cordova and npm
- Upgrade ShortcutBadger to v1.1.18
- Fixed issue with Android 4.x, see #95, #97
- Support for OSX platform
- Updated code to work properly with iOS@10
- Dropped supported for iOS@9
- Upgrade ShortcutBadger to v1.1.17
- Allow specifying ShortcutBadger version via gradle property
- Config settings like
autoClear
are not persisted - Small enhancements and bug fixes
- Removed platform support for WP8
- Removed old namespace
plugin.notification.badge
- Upgrade ShortcutBadger to v1.1.11
- Support for ZUK
- Improved support for Samsung devices
- Upgrade ShortcutBadger to v1.1.8
- Support for Huawei
- Support for iOS 10
- New ID
cordova-plugin-badge
- Upgraded ShortcutBadger to v1.1.4
- Use new app-event plugin
- Removed support for Amazon FireOS (ShortcutBadger doesnt support it)
- Support for app icon badges on selective Android platforms thanks to ShortcutBadger
- Sony
- Samsung
- LG
- HTC
- Xiaomi
- ASUS
- ADW, APEX, NOVA
- New platform support:
- Amazon FireOS
- Browser
- Windows
get
,set
andclear
support callbacks.- Support for Glyphs on Windows platform.
- Added tests
- Upgrade cordova dependency from 3.0 to 3.6
- Fix incompatibility with local-notification plugin and PGB caused by the usage of hooks.
- New interfaces to increase or decrease the badge number.
- Fix incompatibility with local-notification plugin.
- Add instead of replace permissions on iOS.
- Refreshed layout of the example app.
- [change:] Renamed
promptForPermission
toregisterPermission
. Older one is still supported. - [enhancement:] Support iOS8 and older SDK versions from a single binary.
- [enhancement:]
registerPermission
returns result of registration. - [enhancement:] No need anymore to call
registerPermission
explicit before trying to set the badge number.
- [bugfix:]
hasPermission
andpromptForPermission
let the app crash on iOS7 and older.
- [enhancement:] iOS 8 support
- [enhancement:] All methods are asynchron now and do not block the main thread anymore.
- [feature:] New method
hasPermission
to ask if the user has granted to display badge notifications. - [feature:] New method
promptForPermission
to promt the user to grant permission to display badge notifications. - [feature:] New method
configure
to configure badge properties. - [feature:] The small icon on Android can be changed through
configure
. - [change:] The namespace
plugin.notification.badge
will be removed with v0.6.1 - [change:]
setTitle
is deprecated, please useconfigure({ title: 'title' })
. - [change:]
clearOnTap
is deprecated, please useconfigure({ autoClear: true })
. - [bugfix:]
getBadge
still returned the number when autoClear: was set and the notification was already cleared by the system (Android). - [bugfix:]
clean
was not working on Windows Phone.
-
Added new namespace
cordova.plugins.notification.badge
Note: The formerplugin.notification.badge
namespace is deprecated now and will be removed in the next major release. -
[bugfix:]
get
returned the old value even afterclear
was called on Android.
- [enhancement:] Badge can be cleared automatically through
setClearOnTap
- [enhancement:] Badge can be retrieved through
get
- [enhancement:] Specify custom notification title on Android can be set through JS interface.
- [enhancement:] Setting launchMode to singleInstance isn't necessary anymore. App does not restart on click anymore.
- Added Android support
- Release under the Apache 2.0 license.
- Added WP8 support
- Note: The former
plugin.badge
namespace is not longer available.
- Added new namespace
plugin.notification.badge
Note: The formerplugin.badge
namespace is deprecated now and will be removed in the next major release.
- Added iOS support
Based on the Badge iOS plugin made by Joseph Stuhr