mirzemehdi / KMPNotifier

Kotlin Multiplatform Push Notification Library targetting android, iOS, Desktop and Web (JS and Wasm)
http://mirzemehdi.com/KMPNotifier/
Apache License 2.0
340 stars 19 forks source link

Request permission optional at init #22

Closed corneloaie closed 6 months ago

corneloaie commented 7 months ago

Hello, I want to inform the user before requesting the permission for notifications which is done now at lib init which is done when the app starts. Could you please make the permission request optional in order to have the possibility to request ourselves this when deemed necessary? And later as an improvement expose the request permission method so we can use directly your impl.

Thank you for your great work.

mirzemehdi commented 6 months ago

@corneloaie I'll consider to implement this. Thank you!

mirzemehdi commented 6 months ago

This is implemented in version 0.6.0

For more information about usage you can check comment in PR: https://github.com/mirzemehdi/KMPNotifier/pull/27