【问题标题】:Use a browser to open the url and enter the incognito mode使用浏览器打开网址并进入隐身模式
【发布时间】:2020-10-17 09:52:50
【问题描述】:

在flutter中使用url_launcher打开url,但是我想用隐身模式打开,需要怎么做,谢谢

我使用的是安卓设备

【问题讨论】:

  • 我不知道你可以通过什么方式强制执行此操作。
  • 在 webView 中,你有一个选项,但我不知道 url_laucher
  • 在PC上启动时添加--incognito进入隐身模式,我在Flutter中不知道怎么做
  • 您是指 Android 上的 Chrome,还是 Android 上的 any 浏览器?如果是后者,实际上有些浏览器没有有这样的隐身模式。

标签: flutter


【解决方案1】:

案例 A:如果你是指 Android 上的 Chrome:这是不可能的,即使你正在编写原生 java 代码:How to open a web page in Google chrome incognito from android app

案例B:如果你指的是Android上的any浏览器,实际上有些浏览器并没有这样的隐身模式。对于那些支持隐身模式的浏览器,您可以尝试搜索那个特定的浏览器。

其实,你为什么要隐身打开?也许你可以直接使用 Flutter 的应用内浏览器包,而不用打开外部浏览器。

【讨论】:

    猜你喜欢
    • 2019-03-26
    • 1970-01-01
    • 2022-01-05
    • 1970-01-01
    • 2015-06-03
    • 1970-01-01
    • 2017-05-20
    • 1970-01-01
    • 2013-10-08
    相关资源
    最近更新 更多