CaseMemo for iPad is an iOS application that showcases Salesforce.com integration using OAuth, audio Attachments, and push notifications.
Matthew Botos presented a walkthrough of building the app in Beyond the Force.com Toolkit for iOS at Dreamforce 2011. The Speaker Notes in the slides contain additional details and links. You can also watch the 51-minute video.
The top-level directory contains:
- iOS - iPad app
- Salesforce - Salesforce.com code and configuration
To setup and deploy the Salesforce project in Eclipse to a free developer org, update to the latest Force.com IDE or Eclipse plugin and follow these steps:
- File > Workspace > Other > Browse to the CaseMemo directory you cloned from Git
- Window > Open Perspective > Force.com > Force.com
- File > New Force.com Project > Name "Salesforce" > Enter credentials > None
- Right-click the src node of the file tree > Force.com > Save to Server > Yes
The iOS code is commented in steps; searching for "STEP 1" will list the relevant comments. Search results are in line-number order, not alphabetical - you may need to jump around to follow them in a logical order.
The steps are as follows:
- Login with OAuth
- Get list of Cases
- Cache OAuth token
- Get Case details
- Get list of Attachments
- Add loading indicators
- Record audio
- Save attachment
- Play audio
- Push notifications
Steps 1-9 can be run in the iOS simulator; Step 10 requires a physical iOS device, iOS Developer account, and free Urban Airship account.