2
votes

I used phonegap cloud build service to build the iOS app. But the deviceready event fires after a very long time, about more than 20 seconds.

In my case, I ran my app in iphone-4s. Does any knows any possible reasons?

I think Phonegap shouldn't be so slow on iOS. I wonder if it's because of my iOS certificate? need distribution profiling? Any other configs?

It seems the phonegap native code runs for a long time, and then the device ready is fired.

Thanks for any ideas. Thank you!

1
i was using phonegap 2.3Leo Cai
How did you find out that it took 20 seconds?Nishanth Nair
I alert(some thing) in the device ready event handler. Since I start the app, it's 20 seconds long when the alert shows.Leo Cai
Please post the code in your index.html along with the deviceready event callNishanth Nair
I have found out the reason. When I open my wifi, the startup becomes very slow, when the wifi is closed, the startup is very quick. Any one knows how to disable connecting to network when the app starts?Leo Cai

1 Answers

0
votes

Are you not including cordova.js in the local file system? if its in the local file system, there is no reason why it should connect to PhoneGap website. Also move all your JS,CSS files to the local file system and do not use an CDNs. Then your app will be much faster.