It is a little over 12 hours since we announced the new Force.com and Database.com Ruby gem, and now it is time for the next developer announcement, the availability of the  Mobile SDK developer preview. Currently, this developer preview supports iOS with support for other platforms in the near future.

In a nutshell, the SDK is comprised of two aspects:

1. Native Mobile libraries

The native mobile libraries provides OAuth 2  support for authenticating against Force.com and Database.com, as well as wrappers for calling the REST API.  Here is a quick example, you can check out the Github repository (Oh, it’s open source ) for more samples and documentation.

Now, we are  authenticated, let’s make a quick request for data using the requestForQuery method to return an NSMutableArray of data.

That’s all you need to get started. The native libraries handle all the rest. (no pun intended!)

2. Mobile Container

If you are a HTML5 developer and want the ability to securely access Force.com and Database.com, plus access local device functionality such as contacts, the Mobile SDK also provides the ability  to wrap a web app inside a thin native container, producing a hybrid application.

Then, fetch some data, like this:

If you are at Dreamforce, make sure you check out the Mobile App Dev area in the DevZone, and come and grab a Mobile workbook which will teach you how to build apps using the new SDK.

Houston, we are go for launch!

Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS