Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistant badges #130

Open
clemishow opened this issue Jan 18, 2019 · 1 comment
Open

Persistant badges #130

clemishow opened this issue Jan 18, 2019 · 1 comment

Comments

@clemishow
Copy link

Hello,

I use Ionic and OneSignal for push notifications.
I also manage the badges manually.
Via OneSignal, on IOS, I increase the badge by one when the user receives a notification.
If the user goes to a particular page, I do a Badge.clear().
The clear function works, the badges are no longer visible on the application icon. However, if I receive a new notification within 5 minutes, the badge changes to number two.
If I re-clear, the badges are no longer visible. If I receive a third notification, the badge will have the number 3.

However, if I wait about 5 minutes between each clear and notification, it seems to work.

cordova-plugin-badge 0.8.8
onesignal-cordova-plugin 2.4.6
Ionic:

   ionic (Ionic CLI)  : 4.7.1 (/Users/neocityclement/.virtualenvs/my-app/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 6.4.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic 4.1.7, cordova-plugin-ionic-webview 1.2.1, (and 25 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/dev/Library/Android/sdk)
   ios-deploy        : 1.9.4
   NodeJS            : v10.15.0 (/Users/dev/.virtualenvs/my-app/bin/node)
   npm               : 6.4.1
   OS                : macOS Mojave
   Xcode             : Xcode 10.1 Build version 10B61
@clemishow
Copy link
Author

OneSignal/OneSignal-Cordova-SDK#455

I found this, but it happens on Android too, so it's weird

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant