[Android] WebView doesn't open google play
Unsolved
Mobile and Embedded
-
Hello,
I want to redirect the user from WebView to Google Play Appstore.
To do that, I open some app in google play url, and when I try pressing "Open in play store app" button:After pressing it I get this:
And this error message:
W System.err: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=intent://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=com.facebook.orca } W System.err: at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2067) W System.err: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1727) W System.err: at android.app.Activity.startActivityForResult(Activity.java:5314) W System.err: at android.app.Activity.startActivityForResult(Activity.java:5272) W System.err: at android.app.Activity.startActivity(Activity.java:5658) W System.err: at android.app.Activity.startActivity(Activity.java:5611) W System.err: at org.qtproject.qt5.android.view.QtAndroidWebViewController$QtAndroidWebViewClient.shouldOverrideUrlLoading(QtAndroidWebViewController.java:121) W System.err: at android.webkit.WebViewClient.shouldOverrideUrlLoading(WebViewClient.java:83) W System.err: at org.chromium.android_webview.AwContentsClientBridge.shouldOverrideUrlLoading(chromium-TrichromeWebViewGoogle.apk-stable-410410681:16) W System.err: at android.os.MessageQueue.nativePollOnce(Native Method) W System.err: at android.os.MessageQueue.next(MessageQueue.java:335) W System.err: at android.os.Looper.loop(Looper.java:183) W System.err: at android.app.ActivityThread.main(ActivityThread.java:7656) W System.err: at java.lang.reflect.Method.invoke(Native Method) W System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
So I'm wondering if this is a bug, or am I missing something?
I'm using Qt 5.14.2, and WebView 1.14.
If you want to reproduce this error, just import QtWebView 1.14, add WebView object and set its url to a google play app (in my case: "https://play.google.com/store/apps/details?id=com.facebook.orca&hl=en&gl=US")