-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/packages
#9150Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
Description
Currently, on Android, there is no possibility to get a notification in Flutter that an SSL error occurred while loading a resource.
The user sees a white screen, and the developer doesn't receive any error callbacks from WebView. Only in log developer can see some error:
[ERROR:ssl_client_socket_impl.cc(962)] handshake failed; returned -1, SSL error code 1, net_error -200
By the way, on iOS, the developer receives onWebResourceError callbacks with an appropriate error.
The reason that Android implementation doesn't implement/provide onReceivedSslError notifier.
My proposal is to left the default behavior of this notifier (call SslErrorHandler#cancel), but handle onWebResourceError callback from WebView, so the developer can see this error and provide some actions.
Related Issues & Pull requests
zopagaduanjr, timukasr, sanderpensa, brun0xon, broql and 5 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterp: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team