React-native-fcm: Turn on/off notifications

Created on 25 Jan 2017  路  6Comments  路  Source: evollu/react-native-fcm

Hey folks,

I'm trying to find a way to turn on/off the notification. Is it possible? According to the doc, I could unsubscribeFromTopic and subscribeToTopic, could I do this for all the msg coming from the server?

Thank you.

Most helpful comment

It is not in this module
Why not store a flag on server side?

All 6 comments

You can try to remove instanceId from this device. I haven't tried it

@evollu Can you elaborate on what you mean by that? Are you asking us to implement this behavior, or does it already exist in the module?

It is not in this module
Why not store a flag on server side?

Yeah I think that's definitely the way to go. Thanks! (and thanks for this module, too!)

Hey guys, thanks for taking the time. That was the way I did (saving a flag on the server-side).
I just thought it would be possible and easy to access the settings of the device.

closing this. feel free to reopen if you think necessary

Was this page helpful?
0 / 5 - 0 ratings