# Sunday, 27 March 2011
JAWS is "Just A Web Shell" framework developed by the Facebook IT group for running Force.com web applications on iOS (iPhone/iPad) devices.

JAWS is a "hybrid" mobile application framework that provides a native iOS application on the mobile desktop that instantiates a web browser to a Force.com web page.




Prerequisites:
The Force.com-Toolkit-JAWS-for-iOS project on GitHub includes all of the following steps and source code for building a mobile iOS app on Force.com.

1) Start in XCode by creating a new View-based iPad or iPhone application.



2) Define a UIWebView controller with a default URL of https://login.salesforce.com.
Append the retURL parameter to the URL to define which Visualforce page to load upon authentication.


3) Launch the Interface Designer and create a simple toolbar with UIWebView to emulate a basic browser UI.



4) Build and launch the iOS simulator from XCode to view the Salesforce login page loaded within the UIWebView



5) Upon login, the return URL (retURL) Visualforce page is loaded. In this case, using the jQuery Mobile framework to display a simple mobile UI.
 


That's it! The native web shell runs the Visualforce directly on iOS. With some crafty mobile-friendly UI design in HTML5, the end-user may not even detect the app is actually running entirely in the cloud on Force.com!
Sunday, 27 March 2011 11:57:20 (Pacific Standard Time, UTC-08:00)
Whilst we didnt use a wrapper we ave released the source for our mini visualforce farmework.

http://www.youtube.com/watch?v=p8UlScwnpp4&hd=1
Monday, 28 March 2011 04:20:27 (Pacific Standard Time, UTC-08:00)
Man that's is awesome!
Thursday, 31 March 2011 10:40:40 (Pacific Standard Time, UTC-08:00)
This is awesome. I'm going to use this everywhere.
Shoby Abdi
Saturday, 09 April 2011 06:33:26 (Pacific Daylight Time, UTC-07:00)
This is cool just tried it out tonight. Question I assume since this is not released on the App Store that you have to use the AdHoc provisioning. Do you utilize multiple iPhone dev accounts to get over the 100 AdHoc devices? Also assuming you have more than 100 users.
Saturday, 09 April 2011 07:25:23 (Pacific Daylight Time, UTC-07:00)
@Homer - Thanks for raising the distribution question. You're correct that Apple allows bypassing the App Store for testing up to 100 predefined devices. Enterprise-wide distribution to more than 100 users requires an enterprise license http://developer.apple.com/programs/start/enterprise/index.php
Mike Leach
Saturday, 27 August 2011 10:00:35 (Pacific Daylight Time, UTC-07:00)
I am not an xcode developer, and I am wondering if you have any documentation between step 1 and step2. I downloaded the files github, but when i create a new project in Xcode, it has a default set of files which are created. Which files do i add to the project from the download source, and are there any specific settings that will need to be configured. Any help would be appreciated. Thanks.
MALEEM
Saturday, 27 August 2011 14:04:44 (Pacific Daylight Time, UTC-07:00)
Hey Maleem,

Try creating a new XCode project from scratch, then just cut-n-paste the relavant lines of code from the JAWS framework into your app. There's really only 2 files that need any manual coding.

-Mike
Mike Leach
Comments are closed.