ios - 在 Cordova InAppBrowser-Plugin 中调用“https://localhost”不起作用
问题描述
我目前正在使用 Apache Cordova 构建一个跨平台的移动应用程序。我正在使用 Apache 托管另一个网络应用程序。通过 访问网络应用程序https://localhost
。我正在使用cordova-inappbrowser
-plugin 在我的应用程序中打开网络网址。
我目前的问题:我似乎无法弄清楚,如何打开https://localhost
. Cordova-plugin 适用于“普通”网址,例如https://youtube.com
or else,但是当我尝试打开https://localhost
或者localhost
它只显示没有我的网络应用内容的空白页面时。
在我的应用程序中打开 url 的代码如下所示:
let ref = cordova.InAppBrowser.open('https://localhost', '_blank', 'hideurlbar=yes,hidenavigationbuttons=yes')
https://localhost
从我的 iOS 模拟器上预装的 Safari 应用程序调用工作正常。
有谁知道我做错了什么?非常感谢您的帮助。
解决方案
推荐阅读
- angular - 在 Angular RxJS 可观察方法中等待 Promise 结果
- javascript - 如何在节点应用程序的异步函数中执行 MySQL 查询
- android - 是否可以用 USB 连接两台设备并在一台设备上运行 adb 命令
- r - 如何将ggridges中的部分密度曲线与构面一起填充
- delphi - 在 VCL 中连接 SearchBox 和 ListBox
- javascript - 我需要一个包作为 devDependency 和依赖项
- c++ - asio::io_context 和 asio::thread_pool 有什么区别?
- javascript - Reactjs - 使用 React Hooks 获取 div/图像的高度
- build.gradle - Gradle 错误:在根项目中找不到任务“清理”
- android - 我想在 Node Js 服务器中上传图片时添加 ID