Develop Mobile Web and HybridApps on Force.comSandeep BhanotSenior Developer Evangelist @cloudysan
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 any suchuncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differmaterially from the results expressed or implied by the forward-looking statements we make. All statements other thanstatements 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 ofmanagement for future operations, statements of belief, any statements concerning new, planned, or upgraded servicesor 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 with possiblemergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability toexpand, retain, and motivate our employees and manage our growth, new releases of our service and successfulcustomer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to largerenterprise 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 July 31, 2011. This documents andothers containing important disclosures are available on the SEC Filings section of the Investor Information section of ourWeb site.Any unreleased services or features referenced in this or other presentations, press releases or public statements are notcurrently available and may not be delivered on time or at all. Customers who purchase our services should make thepurchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation anddoes not intend to update these forward-looking statements.
Agenda§ The Backdrop§ The Salesforce.com Mobile SDK§ Developing Web Mobile Apps§ Developing Hybrid Mobile Apps§ Summary
Device Growth Is Exploding, Driven ByConsumers Source: Gartner Research; Smartphone, Tablet, and PC Forecast, December 2010.
And this change is happening TODAY…. > iPhone Revenue – Q1 ’12 TOTAL Microsoft Revenue – Q2 ’12 $24.42 billion $20.89 billion
Salesforce Has The Answer For Every MobileNeedSuite of downloadable Mobile AppExchange for Custom mobile appsapps for accessing discovering purpose-built built and customized bySalesforce data from a apps or comprehensive you or ISV partners onmobile device vertical solutions by Force.com industry
Flexible Mobile App Development On Force.com• Rich user experience • App-like experience • Fast development cycles• Platform specific • Leverages device capabilities • Cross-platform• Proven path for mobile apps • Multiple platforms • Instant updates
Mobile SDK: Accelerate App DevelopmentTools for building native, hybrid, and HTML5 apps on iOS and Android OAuth2 Secure authentication and refresh token management API Wrappers Interact with Salesforce REST APIs with popular mobile platform languages App Container Embed HTML5 apps inside a container to access powerful native device functionality Secure Offline Database Store business data on a device with enterprise-class security 100% Open Source Push Notifications Developed on Github Dispatch real-time alerts directly to mobile devices
Native Mobile App ArchitectureSalesforce Mobile SDKFor Professional Native Developers• Focus on the application interface & logic, not the plumbing for accessing information Native API Wrappers• Integrate Salesforce functionality into Interact with the Salesforce REST existing applications or create new cloud APIs using native platform languages driven apps• Available for iOS and Android OAuth 2.0 Authentication and secure tokenPros management• Fastest performance Secure Offline• Advanced touch gestures Database Store business data on a device withCons enterprise-class security• Significant development effort Push Notifications• One platform at a time Dispatch real-time alerts directly to mobile devices
‘Mobilize’ the Warehouse application Merchandise__cVisualforce Name Price Inventory Bugatti Veyron You don t want 5 JS Remoting Apex to know Controller Koenigsegg $1M 10 Agera Ferrari Enzo $500K 20 BMW M5 $90K 50
Web Mobile Apps: Recap– Visualforce • JS Remoting • FieldSets Support Cross-platform– HTML5 and CSS3 + Web development Direct Updates– JS Libraries for Touch/Mobile • JQuery Mobile • Sencha Touch • iScroll No Appstore presence • Other - Limited Device Access– Salesforce Mobile Web Toolkit No Secure Storage • JS wrappers for the REST API
Mobile Components for Visualforce Components List Detail SplitViewBuilt on top of Visualforce Features Navigation CSS3 stylesProduces cross-platform HTML5 Tablets SmartphonesHighly customizableLightweight and fastCommunity Supported Open Source
Don’t forget Native Mobile Apps! Native API Wrappers Interact with the Salesforce REST APIs using native platform languagesSalesforce Mobile SDK for Native Apps OAuth 2.0 Authentication and secure token management Secure Offline Store business data on a device with enterprise-class security Push Notifications Dispatch real-time alerts directly to mobile devices
Three Options: Which One Is Right For You?Advanced UI interactions Web developer skillsFastest performance Access to native platformApp store distribution App store distribution Web developer skills Instant updates Unrestricted distribution
Mobile Development Tips Truly ‘Mobilize’ your app - Geolocation - Push Notifications - Offline - Camera/Microphone - Other
Mobile Development Tips Optimize, Optimize, Optimize - Minimize server round trips - JSON/REST - App cache (for web apps) - Lazy loading
Mobile Development Tips Focus on the core functionality and keep it simple
Don’t Forget to Submit Your Survey! Please stop by the registrationkiosks to complete your session surveys - Each survey returned enters you to win one of 8 £250 gift cards Thank you!
Resources– Mobile SDK Home Page http://wiki.developerforce.com/MobileSDK– Mobile Components for Visualforce https://github.com/forcedotcom/MobileComponents– Code shown during this session http://blogs.developerforce.com/developer-relations/2012/02/mobile-sdk-webinar-recording-and- code.html– Weinre http://phonegap.github.com/weinre/– HTML5 resources http://diveintohtml5.info/ http://www.html5rocks.com https://developers.facebook.com/html5/ http://blogs.developerforce.com/developer-relations/2011/06/using-html5-offline-with-forcecom.html @cloudysan