PlatformException in Authentication using Firebase with Flutter

427 views
Skip to first unread message

ALFIZA SHAIKH

unread,
Jul 11, 2020, 4:11:17 AM7/11/20
to Flutter Development (flutter-dev)
I am making a mobile app using flutter.
For Authentication I used Firebase as backend.
Sometimes authentication works properly but sometimes App shows exception as
" PlatformException(error_network_request_failed, a network error(such as timeout, interrupted connection or unreachable host ) has occurred , null). "
And hence i am unable to login or sign in to app  at that time .
I have used email/password login and anonymous login. Error occurs with both type of login.
There is no issue of internet connection.
I am using an emulator to run my app.
So does anyone know why this error occurred and how to solve it? 

Souvik Dutta

unread,
Jul 11, 2020, 4:19:50 AM7/11/20
to ALFIZA SHAIKH, Flutter Development (flutter-dev)
Emulator are not very good at using computer's internet connection. You might be able to use a physical device without any error considering your internet is good. 

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/8d5dd4ea-9faa-4aba-b7fb-8feba8a75929n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages