Open jake142 opened 8 years ago
Hi, as the Android version does not include badge control, I have not implemented that feature on iOS
But I will check at least the Badge reset when you open the application
We're having this same problem on ios. Have you got any further with this?
Think the following:
Android does not have that badge feature. If I'm implementing an hybrid application, I want to do the same for any platorm. So if Android does not have badge indicator, I prefer not using it also on iOS.
For that reason there are only implemented functions that are common for any platform.
Regards.
2016-08-01 12:35 GMT+02:00 Adam Brocklehurst notifications@github.com:
We're having this same problem on ios. Have you got any further with this?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fechanique/cordova-plugin-fcm/issues/31#issuecomment-236546599, or mute the thread https://github.com/notifications/unsubscribe-auth/ANXY-ysyOZk4oQf3taPbjNjpvPxs_f5lks5qbcvggaJpZM4JLid2 .
I don't understand your last post. Will you make the badge reset when you open the application in ios as you wrote at first?
Even if android doesn't have this feature, you should still make the function available making note it is for iOS users... all plugins do this since each platform performs differently.
It would be nice to have an API for this on this plugin. Otherwise you can always use a different badge plugin to programmatically manage this. I think that automatically having the badge reset when you open the app in iOS is likely a bad idea. As an example, and for the sake of brevity, Imagine that you have a multi-user TODO list (I know, it's always a TODO list, but it works for this example). You may want this badge to reflect the count of things left for you do, or to reflect the count of things left for the group to do. Taking it a step further, what if you provide a setting in the app so that the user can chose which metric is shown on the badge?
I have not tried this but something to this degree could be a nice alternative. https://github.com/katzer/cordova-plugin-badge
It would be really nice if this was exposed in this plugin so that we can do things like the aforementioned without adding another plugin etc...
Is there any update on this? I'm using this plugin in several apps, but all still with badges showing on iOS. Just resetting the badges will help at first time.
I saw that there is a Pull Request to add setBadgeNumber feature. It would help the entire community if accepted.
There is also https://www.npmjs.com/package/cordova-plugin-firebase which seems to have the badge related APIs implemented as well. I'm migrating to fcm from ionic push and am trying to get a handle on all the plugins out there.
Man, get out of here... this plugin is close to death already. I switched over to cordova-plugin-firebase that is actively maintained by community and works very well!
The changes are minimal to switch.
If i post "badge":1 I get a badge on my app. If I open the app, the badge is not removed. Is it possible to get rid of the badge if the user opens the app?