windows7lake / app_badge_plus

A Flutter plugin for adding badges to your app icon.
MIT License
16 stars 6 forks source link

Make requesting notification permissions optional/explicit #6

Closed creativecreatorormaybenot closed 3 months ago

creativecreatorormaybenot commented 4 months ago

In the current implementation, enableNotification is always called when using the plugin.

It would be very beneficial if it was possible to be explicit about requesting notification permissions instead and make requesting the notification permission optional instead.
The use case for this is having custom logic for requesting notification permissions in general.

windows7lake commented 4 months ago

Removed enableNotification in iOS. And you can use permission_handler to manager permission by youself.