I\'ve start working with new Firebase SDK.
When I\'m doing user login, I\'m onAuthStateChanged method is being called twice with same state (etc. user sign in).
try{ FirebaseAuth.getInstance().signOut(); FirebaseInstanceId.getInstance().deleteInstanceId(); }catch (Exception ex){ ex.printStackTrace(); }
When user logout from gmail then the user should also be logout from firebase. This is how I resolved this issue.