Chrome Custom Tabs without intent for user

965 Views Asked by At

I'm trying to implement Chrome Custom Tabs but in my small example, everytime I launch a URL it asks me with which browser I'd like to open it.

I've seen some apps like Twitter official app where the Custom Tab opens without asking anything to the user. How can I achieve that?

Thanks in advance

EDIT: I've followed this tutorial, so my code is 99% the same and the issue is the same in both codes.

1

There are 1 best solutions below

0
On

I´ve solved the issue. I was launching the URL inside a RecyclerView when a CardView was clicked.

The problem is I was warming up the tab at the same time I was launching it. After changing that, everything worked fine.