Phonegap / ios7 - deviceready事件不重新加载触发 [英] Phonegap/ios7 - deviceready event not triggered on reload

查看:230
本文介绍了Phonegap / ios7 - deviceready事件不重新加载触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的Phonegap混合应用程序工作正常,当它首先加载。在这种情况下,很明显deviceready事件正确触发,应用程序启动。没有问题。

Our Phonegap hybrid app works fine when it is loaded first. In this scenario, it is clear the deviceready event fired correctly and the application got started. No issues.

我们有时需要重新加载应用程序。我们只需在index.html(主应用程序html文件)上做一个location.reload()。这里是问题在ios 7设备中开始的地方。

We have a requirement to reload the application at some point. We simply do a location.reload() on the index.html (the main application html file). Here is where the issue starts in ios 7 devices. The application doesn't get started and it appears that deviceready is not fired.

我的问题是:

1) In ios 7 devices, is the deviceready fired only once?
2) If it is so, how can we catch it when we reload the application?

我们在Android设备中没有这个问题。

We don't have this issue in android devices.

推荐答案

您的Phonegap版本是什么?我们也有这个问题3.0,我们升级到3.3 ,它似乎是固定的!

What is your Phonegap version? We also had this issue with 3.0, we upgraded to 3.3 and it seems to be fixed with that!

这篇关于Phonegap / ios7 - deviceready事件不重新加载触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆