Making sure your apps work everywhere is an important part of any mobile strategy. The mobile web allows you to reach your users wherever they are, and users have grown to expect that you’ll be there wherever they go.
Increasingly, users want to access applications through app stores; to reach your users, you have to be available to them as many ways as possible. PhoneGap allows you to put your web applications in a native wrapper and deliver them in the Apple App Store, Android Marketplace, and many other native app stores. It also integrates really well with SproutCore, making it the natural choice.
Create your PhoneGap XCode project and save it right inside your SproutCore project’s directory (the one created with you ran
sc-init). Let’s assume you’ve saved your PhoneGap project to ‘
Integrating PhoneGap with SproutCore Projects
Then, when editing your application’s Buildfile, require the PhoneGap framework you’ve just added:
config :all, :required => [:sproutcore, :phonegap]