Issue
I have some webview in my android app. So on click of a button inside webview, need to open a specific app screen using deeplink. How to do that?
Solution
create some custom JS interface and handle this click, how to HERE
another aproach would be to use custom WebViewClient
set for WebView
with overriden shouldOverrideUrlLoading
method and inside of it apply your own logic for opening some other Activity
or whatever, and then return true
. if passed url should be loaded in WebView
just return false
Answered By - snachmsm
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.