In my app, I already have a way of checking if the user has a problem with the internet connection thus I have already handled these cases (I am using the Realtime Database, authentication, and cloud functions). But is there a way of knowing beforehand if the server itself is having problems (like an outage, downtime, etc.) and not when I check for the failed Task in the onComplete callback? I remember reading somewhere that if this statement
FirebaseApp.getInstance()
throws an IllegalStateException it basically means that Firebase isn't available, but I am not sure if that is true or if it is exactly what I need.