Salesforce Mobile DevWeek 21-28 April: Introduction to Native & Hybrid Development with Mobile SDK


Published on

This session was meant to introduce the Mobile SDK to all attendees of the Jaipur Developer User Group. This was a part of the global Salesforce Mobile Dev Week -

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Salesforce Mobile DevWeek 21-28 April: Introduction to Native & Hybrid Development with Mobile SDK

  1. 1. Introduction to MobileSDK – Native & Hybrid DevelopmentGaurav Kheterpal,Head – Mobility,
  2. 2. Safe harborSafe harbor statement under the Private Securities Litigation Reform Act of 1995:This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If anysuch uncertainties materialize or if any of the assumptions proves incorrect, the results of, inc. coulddiffer materially from the results expressed or implied by the forward-looking statements we make. All statementsother than statements of historical fact could be deemed forward-looking, including any projections of product orservice availability, subscriber growth, earnings, revenues, or other financial items and any statements regardingstrategies 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.The risks and uncertainties referred to above include – but are not limited to – risks associated with developing anddelivering new functionality for our service, new products and services, our new business model, our past operatinglosses, 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 withpossible 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 andsuccessful customer deployment, our limited history reselling products, and utilization and sellingto larger enterprise customers. Further information on potential factors that could affect the financial results, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended July 31,2012. This documents and others containing important disclosures are available on the SEC Filings section of theInvestor Information section of our Web site.Any unreleased services or features referenced in this or other presentations, press releases or public statements arenot currently available and may not be delivered on time or at all. Customers who purchase our services should makethe purchase decisions based upon features that are currently available., inc. assumes no obligationand does not intend to update these forward-looking statements.
  3. 3. Gaurav KheterpalHead – Mobility, Metacube@gauravkheterpal
  4. 4. Agenda§  Quick Poll§  Introduction – Self§  Why Mobile?§  Introduction –§  Introduction – Mobile SDK§  Mobile SDK – iOS§  Why Hybrid?§  Hands-On§  Summary/ Q&A
  5. 5. Intro•  Engineering Post Graduate from BITS, Pilani (Not everybodydrops out J)•  Mobile + Web Developer With 13 Years of IndustryExperience (I’m getting old L)•  Started my journey with the ‘Ultimate Killer Mobile App’ (Anyguesses?)•  Speaker at Dreamforce 2012, Droidcon 2011 and 2012 andseveral Mobile Monday events•  Keen Interest in Cross-Platform Frameworks such asTitanium, PhoneGap, Sencha Touch and others
  6. 6. Why Mobile?Source: Gartner Research; Smartphone, Tablet, and PC Forecast, December 2010.
  7. 7. We’re Living in the Post-PC EraiPhone Revenue – Q1 ’12$24.42 billionTOTAL Microsoft Revenue – Q2 12$20.89 billion>
  8. 8. Info Workers Use Many Devices For Work & Personal52% of information workers use 3 or more devices60% of these devices are used for both work and personal useSource: Forrester Blogs: Why Tablets Will Become Our Primary Computing Device, Frank Gillett, April 23, 2012
  9. 9. Mobile SDK
  10. 10. Mobile SDK – Getting Started§  Git repos••§  Tools•  iOS – git, Xcode•  Android – git, Eclipse
  11. 11. Mobile SDK (iOS) – Installation$ git clone$ cd SalesforceMobileSDK-iOS$ ./
  12. 12. Mobile SDK - oAuthRemoteApplicationForce.comPlatformSends App CredentialsUser logs in Token sent toCallbackConfirms tokenSend access tokenMaintain session withrefresh token
  13. 13. Mobile SDK - oAuth
  14. 14. Mobile SDK - CRUD
  15. 15. Why Hybrid?•  Write once, run anywhere•  Reuse existing web development skills•  Visualforce, HTML5, JavaScript, CSS3 etc.•  Access native device functionality•  App Store distribution (unlike web apps)
  16. 16. Why not Hybrid?•  May not be as fast as native apps•  Limited support for multi-touch gestures•  Cannot do advanced graphics like WebGL
  17. 17. How Does Hybrid Work?The JavaScript Native ‘Bridge’ =Custom WebViewCall JS from native codeCall native code from JS…
  18. 18. Hybrid - PhoneGap or Cordova?•  Cordova is an Apache Open Source project•  PhoneGap is a distribution of Cordova distributed by Adobe•  Currently, PhoneGap and Cordova are one and the same•  Mobile SDK uses Cordova
  19. 19. Hybrid - What Libraries Can You Use?•  XUI•  Zepto•  jQuery•  DojoDOM•  jQuery Mobile•  Sencha Touch•  Dojo Mobile•  GloveBox•  Ekiben©•  QUnit•  Jasmine•  DominatorJS•  ThumbsJs•  MochaTestingAny JS/CSS library/framework of your choice
  20. 20. Mobile SDK Integration Opportunities§  Mobile SDK vs. Other Approaches•  zkSforce•  REST API
  21. 21. Learning Path§  Mobile SDK GitHub Repo§  DFC (§  Mobile SDK Workbook§ Mobile Discussion Boards
  22. 22. Gaurav KheterpalHead – Mobility,