Skip to content Skip to sidebar Skip to footer

Android App Link Is Not Working Fine

I've been playing with app links with a test example but it's not working in my case. I've created two html files source.html and some_html_file.html within the assets directory.I

Solution 1:

Deep Linking is implemented with the motive in mind that your app should be opened when a link is clicked in another browser. In your case your browser (WebView) exists within your app, which doesn't make sense of using Deep Linking, you could simply open up your particular activity using this code:

webView.setWebViewClient(newWebViewClient() { 
            publicbooleanshouldOverrideUrlLoading(WebView view, String url){
                if(url.equals(YOUR_URL))
                {
                   // Open Activity here
                }
                webView.loadUrl(url); 
                returnfalse; 
            } 
        });

You can see my answer here regarding Deep Linking.

UPDATE

Change your manifest like this:

<activityandroid:name=".HandleUriActivity"><intent-filter><dataandroid:scheme="http"android:host="rahulchaurasia3592.github.io" ><actionandroid:name="android.intent.action.VIEW" /><categoryandroid:name="android.intent.category.BROWSABLE" /><categoryandroid:name="android.intent.category.DEFAULT" /></intent-filter></activity>

Post a Comment for "Android App Link Is Not Working Fine"