I’ve created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not supported. I’ve tried looking through documentation but was unable to find anything relating to this. Any help is much appreciated.
Share
For me the JavaScript thing wasn’t a solution as the HTML is not under my control. So if you need to control this from the application side, then there is a relative simple solution: Derive from
WebViewClientand inject the implementation usingWebView.setWebViewClient(). All you need to override in yourWebViewClientimplementation is theshouldOverrideUrlLoadingmethod as shown here:For me this works fine.