I am trying to open my WebView app from URLs from browser and Google Search.
I tried using the following code as suggested here: How to launch app on click of url in android
<intent-filter>
<data android:scheme="https" />
<data android:scheme="https" android:host="www.webviewurl.com"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
But it didn't work.
I want to force open all URLs like:
https://*.webviewurl.com/*
http://webviewurl.com/*
to https://www.webviewurl.com/*
in the WebView.
I've already done this part in the server using .htaccess
.
I want the URLs to open in WebView by default.