-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
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
bug: App not working on modern Huawei devices #6258
Comments
Pls, fix bug |
Same issue on Honor devices. Apparently, when there was no GMS out of the box, problems arise. |
Have the same issue, so I did some research. The problem is that the Huawei webview have its own versioning, which is different from Android system webview. Current is 12.1.3.371 or something like this. Capacitor check version by WebView.getCurrentWebViewPackage() and its return 12.x.x.x (package version, not a chrome version inside it). I made quick workaround by adding the folllowing code to Bridge.java > isMinimumWebViewInstalled() after PackageInfo info = WebView.getCurrentWebViewPackage():
Its allow to bypass the check, but obviously the minWebViewVersion became useless in that case because we cant do version matching between huawei webview and android webview. To solve this issue I do additional check in my app. Hope this was helpfull. |
…6402) Co-authored-by: Mark Anderson <[email protected]>
Should be fixed in any 5.0.0 release - as of today the most current is |
…6402) Co-authored-by: Mark Anderson <[email protected]>
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
android
Current Behavior
Huawei has its own webview and not using google`s one.
Its versions is not same as chrome!
Capacitor detects it as legacy webview (<60) even in modern webviews and redirects the user to errorPath.
Expected Behavior
App should working in modern Huawei devices!
The text was updated successfully, but these errors were encountered: