Is it possible to get the current URL of a Android Chrome CustomTab in real time?

╄→尐↘猪︶ㄣ 提交于 2019-12-08 04:38:29

It is not possible

In order to safeguard the user's privacy when navigating, the URLs are not automatically sent to the host app through the navigation events.

It is possible to get the URL as a result of the user clicking on the custom action button or on one of the buttons on the secondary toolbar.

This piece of code shows how to setup the custom action button and this code shows how to retrieve the URL inside a BroadcastReceiver, invoked by the CustomAction.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!