So, I just want to handle the situation when user logs out from the app.
I call method FirebaseMessaging.getInstance().deleteToken()
when user logs out, and it works as expected, i.e. user doesn't receive push messages anymore...
But if there is no internet connection method deleteToken()
doesn't help. User still gets push messages when a connection is established despite the fact that he logged out.
How can I handle this?