Open Jamie452 opened 6 years ago
Looking for answers to the same question.. Its a disaster this isnt properly documented
Yeah mate a true disaster.
using SharedPrefs to check login state and then show/do operations accordingly.. ? Found this, probably the simplest solution. Haven't tested though.. src: https://stackoverflow.com/questions/47547091/handling-login-logout-on-receiving-fcm
I've managed to get an app up and running that uses FCM and firebase auth, both of which are working great.
I'm wondering what the best practice would be to avoid sending FCM's to a device where the user has logged out.
Thought I'd ask if theres some clever mechanism for this already or if my only options are to subscribe/unsubscribe to a topic on login/logout?