Retrieving the URL from Custom Tabs in Android

Written by cotr | Published 2020/07/31
Tech Story Tags: tutorial | android | retrieve-url-from-custom-tabs | chrome-custom-tabs | latest-tech-stories | android-app-development | android-app-tutorials | android-apps | web-monetization

TLDR 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.via the TL;DR App

no story

Written by cotr | Building buzzy software
Published by HackerNoon on 2020/07/31