cordova-plugin-badge icon indicating copy to clipboard operation
cordova-plugin-badge copied to clipboard

clear() method call removes push notifications from lock screen and notification center on IOS

Open connor-odoherty opened this issue 6 years ago • 1 comments

Using version 0.8.8 in an Ionic Cordova iOS project, with push notifications sent by the Ruby UrbanAirship gem.

To reproduce:

  1. Attach a listener to your push notifications that adjusts badge value
  2. Call clear() in this handler
  3. Send a push notification to your iOS device
  4. 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
  5. Make a new build with the clear() call removed
  6. 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?

connor-odoherty avatar Mar 12 '19 02:03 connor-odoherty

Hi, do you have any solution for this ?

edwincabrejos avatar Jan 28 '21 02:01 edwincabrejos