1

I had a look here but it seems that the things changed in API 23 as the scheme is no more android-app://.

My deep link works well in Chrome but not in WebView.

Currently my link is the following one:

<a href='intent://www.example.com/webservice?site=whynot&theme=xx&lang=fr#Intent;scheme=http;package=com.ndguide.ndguide;end'>My Intent Link</a>

And so I intercept the url like below:

@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
    Intent intent;

    if (url.contains("intent://")) {
        intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse(url));
        startActivity(intent);

        return true;
    }
    return super.shouldOverrideUrlLoading(view, url);
}
Community
  • 1
  • 1
fralbo
  • 2,534
  • 4
  • 41
  • 73
  • What do you mean `not work in WebView`? Ensure `url.contains("intent://")` capture your IntentLink then you only need to start it. Btw, I think you will get an `ActivityNotFoundException` if there is no app response your `IntentLink`. – sakiM Apr 03 '16 at 08:07
  • @saki_M, yes this what I finally done, I simply process the url internally. thanks – fralbo Apr 05 '16 at 11:43
  • So is there any other problem? – sakiM Apr 06 '16 at 03:02
  • @saki_M No more in my specific case. Thanks. – fralbo Apr 06 '16 at 04:05

0 Answers0