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

Badge number still exist when re-install application

Open SanjanaTailor opened this issue 6 years ago • 8 comments

Hi all, I installed my app and do something to add notification. There is a badge number on the icon app as I expected. But when I remove the app and then install it again, I still see the badge number on the icon app until I start the app. As my expectation, I think the badge number must be clear when the application is removed, but here, it is not. How can I fix that? Plugin info "dependencies": { "@ionic-native/badge": "^4.20.0", "cordova-plugin-badge": "0.8.8", } ionic info

Ionic:

ionic (Ionic CLI) : 4.1.2 Ionic Framework : ionic-angular 3.8.0 @ionic/app-scripts : 3.0.1

Cordova:

cordova (Cordova CLI) : 9.0.0 ([email protected]) Cordova Platforms : android 6.3.0 Cordova Plugins : no whitelisted plugins (14 plugins total)

System:

Android SDK Tools : 26.1.1 ( NodeJS : v8.11.2 npm : 6.9.0 OS : Windows 10

SanjanaTailor avatar May 02 '19 09:05 SanjanaTailor

You could think of force-clear.

cordova.plugins.notification.badge.clear();

SuperStar518 avatar May 02 '19 11:05 SuperStar518

@alidavid0418 : I am already doing it but this is uninstall the app so by default plugin willl call above function. can it be possible to give an example programmatically

SanjanaTailor avatar May 03 '19 06:05 SanjanaTailor

I'm facing this issue. Did you found a solution for this, @SanjanaTailor ?

rnng avatar May 28 '19 12:05 rnng

No @rnng

SanjanaTailor avatar May 31 '19 10:05 SanjanaTailor

Also facing this issue.

Update: Downgraded to 0.8.6 and the error is gone.

viananicolas avatar Jun 12 '19 15:06 viananicolas

@viananicolas : Is it resolved for iOS ? After uninstall and install the app shows badge count from cache(old)

SanjanaTailor avatar Jun 13 '19 08:06 SanjanaTailor

Yeah, it's gone for me by uninstalling version 0.8.8 and installing an older version, like 0.8.6.

viananicolas avatar Jun 14 '19 18:06 viananicolas

I cannot reproduce that

katzer avatar Sep 27 '19 08:09 katzer