【问题标题】:Cordova app is launching mobile safari each time I navigate to a jQueryMobile page每次我导航到 jQueryMobile 页面时,Cordova 应用程序都会启动移动 Safari
【发布时间】:2012-07-27 18:32:47
【问题描述】:

每次我点击 jQuery Mobile 链接时,我的应用程序都会做正确的事情并导航到选择页面,但当我在 iPhone 模拟器中运行时,它也会在 Mobile Safari 中启动该页面的副本。我确定我只是缺少一些配置设置。

这是我的 mobileinit 函数

$(document).bind('mobileinit', () -> 
  $.mobile.allowCrossDomainPages = true
)

我修改了Cordova.plist 中的ExternalHosts 数组,将我的应用服务器的域名列入白名单。我错过了什么?

【问题讨论】:

    标签: jquery-mobile cordova-2.0.0


    【解决方案1】:

    我遇到了同样的问题。这个解决方案很好用。

    http://moduscreate.com/opening-all-urls-with-phonegaps-childbrowser-plugin/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-28
      • 1970-01-01
      • 1970-01-01
      • 2021-03-18
      • 1970-01-01
      相关资源
      最近更新 更多