简体   繁体   English

chrome自定义标签android中的白名单URL?

[英]Whitelist URL in chrome custom tabs android?

What is the best way/best practice to implement URL whitelisting in chrome custom tabs on android ? 在Android上的chrome自定义选项卡中实现URL白名单的最佳方法/最佳实践是什么?

It was pretty easy to do in Web view implementations on android , but how does CCT handle this. 在Android上的Web视图实现中很容易做到,但CCT如何处理这个问题。

Is it really possible at all in android? 在android中它真的可能吗?

Once a chrome custom tab is running, it runs in a separate process (unlike web views). Chrome自定义选项卡运行后,它将在单独的进程中运行(与Web视图不同)。 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). 目前,无法在自定义选项卡上捕获正在访问的URL(除了用于启动自定义选项卡的URL)。

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. 可以执行的唯一级别的网址白名单是确保在实例化自定义选项卡时只能打开白名单网址,但是一旦运行,用户可以导航到自定义选项卡中的任何网址,并且无法获得处理那个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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