Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Beyond the Force.com Toolkit for iOS<br />Developers Track<br />Matthew Botos, Mavens Consulting <br />@BotosCloud<br />We...
Safe Harbor<br />Safe harbor statement under the Private Securities Litigation Reform Act of 1995:<br />This presentation ...
We’re Going to Build an iPad App<br />View list of Cases with details<br />Record, upload, & play audio Attachment<br />Pu...
We’re Going Beyond This…<br />
And we’re going #OpenSource!<br />github.com/mbotos/CaseMemo<br />
Step 0: Create a Free Dev Org<br />
Setup > Develop > Remote Access<br />
Skip Steps<br />Step 1: Login with Oauth<br />Step 2: Get list of Cases<br />
Step 1: Login with OAuth<br />
Step 2: Let’s Get Some Data!<br />
Step 3: Cache the OAuth Token<br />
Where should we store it?<br />NSDefaults<br />Keychain<br />CoreData<br />
Keychain<br />Cryptographically-secure storage<br />
Skip Steps<br />Step 4: Show Case details<br />Step 5: Get list of Attachments<br />Step 6: Add loading indicators<br />
Step 4:Add Some Details<br />
Step 5:Add Attachments<br />
Step 6:Add Loading Indicators<br />
Case<br />Attachment_Count__c<br />Attachment<br />ParentId<br />Trigger<br />
Step 7: Recording<br />
Step 8: Save Attachment<br />
Step 9: Play Audio<br />
Upcoming SlideShare
Loading in …5
×

Beyond the Force.com Toolkit for iOS - Dreamforce 2011

You’ve downloaded the Force.com Toolkit for iOS and built your first app, now take it to the next level by adding media attachments from your device and real-time push notifications! Join Mavens Consulting for a code-intensive walk through of the open source Salesforce Case Memo app. You’ll learn how to record audio and upload it as an Attachment to a Case in a background thread. Next, integrate real-time push notifications with Apex trigger callouts to Urban Airship’s REST API. Finally, see how these techniques are used to meet real business requirements in 2nd Opinion, a bespoke Salesforce iPhone app for doctors to manage their relationships with pharmaceutical companies.

  • Be the first to comment

  • Be the first to like this

Beyond the Force.com Toolkit for iOS - Dreamforce 2011

  1. 1. Beyond the Force.com Toolkit for iOS<br />Developers Track<br />Matthew Botos, Mavens Consulting <br />@BotosCloud<br />We’re Hiring!<br />Download the code! github.com/mbotos/CaseMemo<br />
  2. 2. Safe Harbor<br />Safe harbor statement under the Private Securities Litigation Reform Act of 1995:<br />This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.<br />The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended April 30, 2011. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.<br />Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.<br />
  3. 3.
  4. 4. We’re Going to Build an iPad App<br />View list of Cases with details<br />Record, upload, & play audio Attachment<br />Push notification of closed Cases<br />
  5. 5. We’re Going Beyond This…<br />
  6. 6. And we’re going #OpenSource!<br />github.com/mbotos/CaseMemo<br />
  7. 7. Step 0: Create a Free Dev Org<br />
  8. 8. Setup > Develop > Remote Access<br />
  9. 9. Skip Steps<br />Step 1: Login with Oauth<br />Step 2: Get list of Cases<br />
  10. 10. Step 1: Login with OAuth<br />
  11. 11.
  12. 12.
  13. 13. Step 2: Let’s Get Some Data!<br />
  14. 14.
  15. 15. Step 3: Cache the OAuth Token<br />
  16. 16. Where should we store it?<br />NSDefaults<br />Keychain<br />CoreData<br />
  17. 17. Keychain<br />Cryptographically-secure storage<br />
  18. 18. Skip Steps<br />Step 4: Show Case details<br />Step 5: Get list of Attachments<br />Step 6: Add loading indicators<br />
  19. 19. Step 4:Add Some Details<br />
  20. 20.
  21. 21. Step 5:Add Attachments<br />
  22. 22.
  23. 23.
  24. 24. Step 6:Add Loading Indicators<br />
  25. 25. Case<br />Attachment_Count__c<br />Attachment<br />ParentId<br />Trigger<br />
  26. 26.
  27. 27.
  28. 28.
  29. 29. Step 7: Recording<br />
  30. 30.
  31. 31.
  32. 32.
  33. 33. Step 8: Save Attachment<br />
  34. 34.
  35. 35.
  36. 36. Step 9: Play Audio<br />
  37. 37.
  38. 38. Step 10: Push Notifications<br />
  39. 39. How Push Notifications Work<br />Device<br />
  40. 40. Service Setup<br />Certificates <br />Urban Airship<br />
  41. 41. Push Registration<br />
  42. 42.
  43. 43. Salesforce Notifications<br />
  44. 44. What will we use?<br />Apex Trigger<br />Apex Class<br />Web Callout<br />
  45. 45. Salesforce Push Architecture<br />Case Trigger<br />CasePushNotification<br />Push Notification Interface<br />Urban Airship Implementation<br />Mock Implementation<br />
  46. 46. Push Notification Settings<br />
  47. 47. Push Log<br />Sending to https://go.urbanairship.com/api/push/batch/: [{"aps": {"alert": "Your case has been closed”…<br />System.HttpResponse[Status=OK, StatusCode=200]<br />
  48. 48. Urban Airship Error Console<br />
  49. 49. How many web callouts per context?<br />10<br />20<br />50<br />
  50. 50. Governor Limits<br />Queue web callouts for single batch<br />
  51. 51. Receive Notifications<br />
  52. 52.
  53. 53. Beyond Where We Started<br />Open Source. OAuth. Keychain Secure Storage. Incremental Loading. Audio Recording. Audio Playback. Push Notifications.<br />
  54. 54. Thanks for goingBeyond the Force.com Toolkit for iOS!<br />Matthew Botos <br />@BotosCloud<br />We’re Hiring!<br />Download the code! github.com/mbotos/CaseMemo<br />
  55. 55. But wait, the DevZone has more!<br />Hackathon<br />Check out the Finale, Thurs, 2:30pm<br />Open Source Lab<br />Discover new & interesting open projects<br />Lightning Forum<br />Drop in for a quick blast of knowledge<br />Tech Demos<br />See and learn the latest from the experts<br />Code Consultations<br /> Sign up for 1:1 sessions at the Welcome Desk<br />@forcedotcom<br />
  56. 56. How Could Dreamforce Be Even Better? Tell Us!<br />Every session survey you submit is a chance to win an iPad 2!<br />Watch your inbox at the end of each day for an email from our survey partner, Alliance Tech.<br />Click on the personalized link to be directed to the survey page for the sessions you attended. <br />

×