Aleksandr
ย ยทย Mobile Developer

Enable/disable Push notifications using the Switch widget.

Actions & Logic
Resolved

I would like to give the user the ability to toggle the push notification permission from within the application, or at least call the push notification permission window every time the switch component is toggled to true/false. But for some reason the permission window only appears once. And if you give permission for push notifications, it cannot be called afterwards. I have to go to system settings and disable notifications there and only then switch the switch widget again. Is there an elegant solution to this problem? Many applications take the user to the system settings if he wants to enable previously disabled push. How to do this?

What have you tried so far?

I set the permission call to the switch on and switch off action

Did you check FlutterFlow's Documentation for this topic?
Yes
4
2 replies