Home > other >  how enable/disable push notification with FCM
how enable/disable push notification with FCM

Time:12-09

I use the firebase_messaging package and I want to use the Switch widget to enable and disable permissions for notifications and I don't quite understand how to do it There was an idea to unsubscribe and subscribe to topics, but I don't like it

CodePudding user response:

You can't enable or disable the permissions, all you can do is open the settings screen and ask the user to do it. The alternative is to subscribe/unsubscribe from topics as you mentioned.

  • Related