简体   繁体   中英

Whitelist URL in chrome custom tabs android?

What is the best way/best practice to implement URL whitelisting in chrome custom tabs on android ?

It was pretty easy to do in Web view implementations on android , but how does CCT handle this.

Is it really possible at all in android?

Once a chrome custom tab is running, it runs in a separate process (unlike web views). Currently there is no way to be able to capture what url is being visited on the custom tab right now (besides the url with which you start the custom tab with).

The only level of url whitelisting that can be done is to make sure only a whitelisted url can be opened while instantiating the custom tab, but once its running the user can navigate to any url within the custom tab and there is no way to get a handle on that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM