Open ubaidazad opened 9 months ago
When listening to onMessage, onNotificationTap there is no way to remove listeners and is leading to memory leak
// on message firebase() .messaging() .onMessage(async (remoteMessage) => { console.log({ remoteMessage }); }); // on notification tap firebase() .messaging() .onNotificationTap((message) => { console.log({ message }); });
there is no way to remove listeners as there is for firebase auth
firebase().auth().addAuthStateChangeListener firebase().auth().removeAuthStateChangeListener
When listening to onMessage, onNotificationTap there is no way to remove listeners and is leading to memory leak
there is no way to remove listeners as there is for firebase auth