g123k / flutter_app_badger

Support to update the app badge on the launcher (both for Android and iOS)
https://pub.dev/packages/flutter_app_badger
Apache License 2.0
307 stars 172 forks source link

Added a new function to get current badge count #60

Open MrJai opened 2 years ago

MrJai commented 2 years ago

Example updated.

g123k commented 2 years ago

I'm sorry but the way you implement this feature is unreliable. If some Android code is called outside this library, the information stored in the preferences will be wrong

MrJai commented 2 years ago

Yes you are right. I am thinking for a better solution for Android. I am mainly experienced in iOS so if some Android developer want to contribute to it, that would be great.

g123k commented 2 years ago

I convert your PR as draft, since I can't approve it

aytunch commented 9 months ago

Hi is there any update on this @g123k @MrJai ? I need to make some calculations according to the current badge value. If for Android, it is not possible to get the integer value, just getting if there is a badge or not would be helpful too. Thanks