fapps
fapps

Reputation: 1839

Chrome Custom Tabs without intent for user

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.

Upvotes: 1

Views: 993

Answers (1)

fapps
fapps

Reputation: 1839

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.

Upvotes: 1

Related Questions