Closed kk-atom closed 1 year ago
This looks like the device or emulator you are running on doesn't have a WebView installed.
Can You please add a check if WebView is available? Or how can I handle this exception? Try catch is not supported around composable function invocations.
That is a fair request so I'll reopen this issue, you could handle this yourself though by just wrapping the WebView usage in an if
if(getPackageManager().hasSystemFeature("android.software.webview")) {
WebView()
} else {
Text("WebView not supported")
}
As I understand hasSystemFeature is not reliable because it will return true also when webview is disabled.
Unfortunately Accompanist WebView has been deprecated and won't be supported going forwards. I am closing this issue. We recommend you fork the implemenation here and customise it to your needs. For more information please see our update blog