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!