Problem Background
This app I’m talking about being developed using react native.
In an app that I’m working on, there are two methods that use firebase. One to query database to get some data and other for firebase authentication.
Problem
When I call firebase.database() function and firebase.auth() function, there might be a network connection problem such as router block firebase request. In such cases firebase function expects the reply but it will not be received. That would be a huge user experience problem regarding the app.
So is there a way that I can identify a timeout and provide some notification for the user to change the network or do something?
Note
Using netinfo I can find whether the user has connect to the internet. But not if firebase url is blocking by the router. So I’m expecting a solution for that.
react-router-flux? And please provide code examples about your workflow to clarify the question. - Maxence Machu