Niels - PRECISELY what I was looking for (including the offline advice
you tossd in there for good measure). Thank you! Very appreciated.
Interestingly enough I tripped across PhoneGap last night as I was
mulling all this through. Seems like a viable route forward.

Only question I have now has to do with In App Purchases. I suppose I
need to augment my PhoneGap app with the necessary iPhone SDK bits,
yes?

Gerald

On Nov 13, 4:19 am, Niels Leenheer <[email protected]> wrote:
>
> You need PhoneGap.
>
> It's basically a wrapper around the Webkit engine that lets you run your
> webapp. You can download a ready to use XCode project and put your HTML, CSS
> and Javascript files in a directory. Then compile it using XCode, debug it
> and send it to Apple.
>
> Well, in reality you may need to work a bit on your webapp to make it work
> and not all webapps are suitable.
>
> For example:
>
> If I would create a really simple webapp that shows the weather I could use
> a PHP script to fetch the weather from a weather API, parse that data and
> present a custom made HTML page with a link to a beautiful graphic that
> represents the current weather.
>
> If I would make a regular app using PhoneGap I would use a different
> method.
> You can't just put the PHP script on the iPhone, so you need rewrite the app
> and use a different strategy.
>
> First of all, I would change the PHP script to output JSON data and use it
> as an external API that your app talks to. Also I would remove the graphics
> from the server and move them over to the XCode project. Next I would create
> a regular HTML file and some Javascript that would request the JSON data
> from the server and parse it and show an image from the XCode project based
> on the parsed data.
>
> And if you really want to make your app independent of a network connection
> you could even store the JSON data using the HTML5 storage API so you can
> show the old data when there is no way to fetch up-to-date information.
>
> It's quite similar to changes you need to make if you want to add HTML5
> Offline support to a webapp. Personally I already develop all my webapps
> using this method, so moving an app to PhoneGap should be pretty trivial.
>
> Cheers,
>
> Nielshttp://rakaz.nl
>
>
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "iPhoneWebDev" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<iphonewebdev%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/iphonewebdev?hl=.

--

You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=.


Reply via email to