Open karthikpala opened 6 years ago
you can unregister it
let unregister = FCM.on(FCMEvent.Notification, ()=>{});
unregister(); // this unregisters listener
Please correct me if I am wrong, this unregisters listeners on the javascript end right? I am talking about the reciever we have created on the localbroadcastManager in android native code.
why do you want to unregister that?
Awesome project @evollu 🥇 Kudos for your efforts 👍
Thought this might not be an issue but might be a reason for receiving push notifications twice in some cases. Please clarify. In the file FIRMessagingModule.java, registerMessageHandler() method, we are registering receiver on react context and not unregistering when app is unmounted. Can we create a @ReactMethod and call it to unregister the receiver from a higher order js component?