How To Open Deep Links In Webview Application
i have created my webview application and i loaded my main url in onCreate method to webview. then i implemented the deep links like this: My Manifest:
Solution 1:
When the activity is launched, in the onNewIntent(Intent intent)
method, get data from intent
(it is supposed to be the url clicked - deep link) which has the type uri
, and then load that url in the web view that you've implemented.
Something like below code:
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
Uri data = intent.getData();
webView.loadUrl(data.toString());
}
Post a Comment for "How To Open Deep Links In Webview Application"