We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If mobile data is on, and the data has gone. The plugin shows that there is internet connectivity.
The text was updated successfully, but these errors were encountered:
I am lurking for this problem/solution all over internet and I hoped this package handles this. If you are correct, it is issue.
Sorry, something went wrong.
I found this solution. bool hasConnection; try { await Firestore.instance.runTransaction((Transaction tx) {}).timeout( Duration(seconds: 5)); hasConnection = true; } on PlatformException catch() { // May be thrown on Airplane mode hasConnection = false; } on TimeoutException catch() { hasConnection = false; }
No branches or pull requests
If mobile data is on, and the data has gone. The plugin shows that there is internet connectivity.
The text was updated successfully, but these errors were encountered: