[webview_flutter] handle onWebResourceError in onReceivedSslError on Android #74609
Labels
c: proposal
A detailed proposal for a change to Flutter
p: webview
The WebView plugin
P3
Issues that are less important to the Flutter project
package
flutter/packages repository. See also p: labels.
platform-android
Android applications specifically
team-android
Owned by Android platform team
triaged-android
Triaged by Android platform team
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:
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
The text was updated successfully, but these errors were encountered: