cordova-plugin-badge
cordova-plugin-badge copied to clipboard
clear() method call removes push notifications from lock screen and notification center on IOS
Using version 0.8.8 in an Ionic Cordova iOS project, with push notifications sent by the Ruby UrbanAirship gem.
To reproduce:
- Attach a listener to your push notifications that adjusts badge value
- Call clear() in this handler
- Send a push notification to your iOS device
- Watch the push notification appear at the top of the screen for a second, then disappear quickly, without being persisted in the message center or anywhere else
- Make a new build with the clear() call removed
- See the push notification get persisted this time
Is this expected behavior? Should the clear() call also remove all persisted push notifications from the message center and/or lock screen?
Hi, do you have any solution for this ?