0

Following is my code for opening web url in app using chrome custom tabs

    CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
    builder.setToolbarColor(ContextCompat.getColor(context, R.color.appthemecolor));
    CustomTabsIntent customTabsIntent = builder.enableUrlBarHiding().build();
    customTabsIntent.launchUrl(context, Uri.parse(url));

This code is working on Marshmellow and above devices and deep links are also working asking to open other apps but chrome custom tabs deep links not working on jelly bean devices.

Any reason why?

amodkanthe
  • 4,345
  • 6
  • 36
  • 77
  • Have you looked at http://stackoverflow.com/questions/34328814/android-open-chrome-custom-tab-from-fragment ? – Gufran Khurshid May 08 '17 at 12:01
  • No I am referring to this documentation which is saying to just add those few lines https://developer.chrome.com/multidevice/android/customtabs – amodkanthe May 08 '17 at 12:06
  • I faced the same problem because my Chrome browser was not updated. Please check that. Although there should be a fallback 'WebViewActivity' that can handle these issues including Chrome browser unavailability. The above link address the same issue. – Gufran Khurshid May 08 '17 at 12:11
  • chrome brwoser is available in my device and is updated as well' – amodkanthe May 08 '17 at 12:12
  • @amodkanthe any resolution on this? – LoveForDroid Aug 06 '19 at 00:56

0 Answers0