Notifications On and Off #7022
Replies: 1 comment
-
Hi there! This is a project-specific question, so you'll have to investigate the behavior of the APIs you are using and use them the way that fits best for your project. I can say that if you include a If you want a button that turns that off, what you'll need to do is implement some sort of storage for a user preference to receive notifications or not (perhaps a property in a user object stored in firestore?) and when the user turns them off, you store that they do not want notifications. Then you check that before you send the FCM. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the firebase @react-native-firebase/messaging
How to handle On and Off the notifications from code?
I want to set a button in the app and On and off the notifications from the button.
how to handle it ?
Please help
Beta Was this translation helpful? Give feedback.
All reactions