isaacadariku / flutter_native_badge

Wrapper for native badge APIs on iOS and macOS. It allows you to change the badge of your app icon, by setting the count, showing red dot, clearing the badge and getting the current badge count.
https://pub.dev/packages/flutter_native_badge
MIT License
6 stars 1 forks source link

Migrate the deprecated iOS badge API #4

Closed fujimo-t closed 3 months ago

fujimo-t commented 3 months ago

Migrate the iOS badge API from deprecated applicationIconBadgeNumber to setBadgeCount and close #3 .

I tested on below environments by flutter_native_badge_foundation/example:

Should I update documents (at least CHANGELOG.md and README.md) in this request? We have better to inform users that getBadgeCount could be unavailable in future versions.

Also the current example uses the getter. Should I update now or wait until the getter obsoluted?

isaacadariku commented 3 months ago

@fujimo-t thank you for this, yes, please, do the update here. So I will trigger a release once I test it out.

fujimo-t commented 3 months ago

I finished the updates.