【问题标题】:Ionic 3 (cordova) app from http url does not open as app but it opens in the browser来自 http url 的 Ionic 3 (cordova) 应用程序不会作为应用程序打开,但它会在浏览器中打开
【发布时间】:2017-12-28 05:51:58
【问题描述】:

我正在使用 ionic 3,我想从云端加载我的应用程序。为此,我对 index.html 的路径进行了更改。应用程序在 android 中打开正常,但在 IOS 应用程序中在浏览器中打开。我想将其作为应用程序打开。以下是我在 config.xml 中对 index.html 的更改

<content src="https://example.com/index.html" />

【问题讨论】:

  • 使用'_self'标志来实现它。

标签: angular cordova ionic-framework


【解决方案1】:

您必须允许导航到该网址。将此添加到 config.xml

<allow-navigation href="https://example.com/*" />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-15
    • 2022-06-13
    • 1970-01-01
    相关资源
    最近更新 更多