Open mtroskot opened 4 years ago
any fix ?
I think in general we should check on the React Native side whether the app is connected to the internet before triggering this request, since none of the methods would work with no internet... but it's probably sensible to have a fallback, so we could add a timeout to the request.
any one have fixed this error [Error: Network error]
use in config dangerouslyAllowInsecureHttpRequests: true,
Issue
When calling prefetchConfiguration with device in airplane mode or with no internet connection the app freezes.
This is the error I get: E/AppAuth: Network error when retrieving discovery document.
config.js file
Also tried using try/catch, still the app freezes.
Environment
RN: 0.59.4 react-native-app-auth: ^4.4.0