paint-brush
Retrieving the URL from Custom Tabs in Androidby@cotr
5,000 reads
5,000 reads

Retrieving the URL from Custom Tabs in Android

by Code on the Rocks7mJuly 31st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Chrome Custom Tabs is the preferred option if you want to give users access to the web without sending them to another app. The biggest inconvenience that I’ve discovered is that the Custom Tab’s current URL is not sent back to the host application and retrieving it is not the most intuitive process. You can be up to running with a few lines of code. Retrieving the URL is possible with PendingIntent that starts our main activity. You can use a CustomTabs callback to determine when pages start and finish loading but the callback does not contain information about the actual URL.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Retrieving the URL from Custom Tabs in Android
Code on the Rocks HackerNoon profile picture
Code on the Rocks

Code on the Rocks

@cotr

Building buzzy software

L O A D I N G
. . . comments & more!

About Author

Code on the Rocks HackerNoon profile picture
Code on the Rocks@cotr
Building buzzy software

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite