Hey guys,
We're using PhoneGap to power an existing webapp (http://
m.translink.ca) and make it location-aware.
It was extremely easy to get going with the PhoneGap platform, but
getting it into final shape is troublesome. Here's what one person on
iPhoneWebDev said on the mailing list:
"I had the same issue. What I did was to have a UIImageView on top of
the UIWebView. The UIImageView has a full screen graphic that has a
nice background and text introducing the app and saying "Please wait"
or something like that. Then I listen for the webViewDidFinishLoad
event and in there I make the image view invisible and he web view
visible.
Also, our app was rejected from the app store initially because it
was
just loading our webapp immediately and not checking for the presence
of a network connection. So make sure you first see if the network is
available and if it is not you'll need to prompt the user
accordingly.
Look at the Reachability sample class for code on checking network
availability."
In essence, the existing Default.png splash screen needs to stay up
until the webpage is fully loaded and show an error in case there is
no network connection.
I tried to make these changes for a couple of evenings, but being a
web dev I can't get it to be stable. Would someone from the core
PhoneGap crew be able to address this, as it's a common issue any
AppStore app would face?
Thanks once again for the amazing work,
Igor