I'm learning Sproutcore at the moment to write my application on it.
The backend will only be a server that pushes json out to the frontend Sproutcore application.
I wonder how it will be when I use PhoneGap or Titanium to port my app to the mobile phones.
How much of the current Sproutcore application do I have to rewrite? Is it only the views and thus leaving the controllers and models untouched?
Cause Sproutcore offers a lot of UI and I guess I have to replace those if I want my app to look native (iPhone buttons, lists etc).
Any guides/tutorials on how it will look like when I combine Sproutcore with Phonegap or Titanium?
I wouldn't expect to just be able to merge your Sproutcore projects and Titanium. Titanium is 'javascript' but you aren't building a website on the iphone / ipad.
Only way you could do integration there is to fire up he Webview on the mobile device and have your Sproutcore files show up within that.
As Ryan said, Titanium is only a JavaScript framework without a DOM.
PhoneGap integration is more approachable. It expects to have a single index.html as an entry point and expects relative paths instead of absolute ones. Peter Wagenet wrote a script to do the necessary transformation. See also SproutCore mailing list thread
If you don't need any native capabilities (Accelerometer, Contacts, etc), you could stick to a standard web app and not worry about Titanium or PhoneGap to transform it to a native mobile app.
Also, I expect we'll hear something from Strobe in the near future about SproutCore (or a descendent) and mobile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With