Reputation: 11
I want to check and enable the following notification settings in my Flutter app:
Allow In-App Notifications
Notification Popups (Heads-Up Notifications)
Notification Sound
I used the permission_handler
package, but it only provides Permission.notification
, which doesn't separately control these settings.
I searched for Flutter plugins but couldn’t find any that check or enable these settings individually.
I want to check if each of these settings is enabled/disabled.
If disabled, I want to enable it programmatically or guide the user to the settings page.
Android: Need to check and enable notification importance, popups, and sound settings.
iOS: Need to check and request notification permissions.
How can I check if these settings are enabled in Flutter?
If Flutter does not support this, how can I achieve this natively in Android (Kotlin) and iOS (Swift)?
If it’s not possible to enable these settings programmatically, how can I redirect the user to the correct settings page?
Any guidance or code examples would be greatly appreciated. Thanks!
Upvotes: 0
Views: 34