Mobile SDK + Cordova


Joshua Birk, Developer Evangelist
@joshbirk
Joshua Birk, Developer Evangelist


                                    @joshbirk

                                    joshua.birk@salesforce.com

                                    http://github.com/joshbirk
The Salesforce Platform

   Your Apps                            Our Apps                     Any Apps


                              Salesforce Touch Platform


                                       Chatter




                                                                         Salesforce Identity
                     Heroku            Force.com          Site.com
       AppExchange




                                    Database.com
Mobile SDK: Accelerate App Development
Tools 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 Storage
       Store business data on a device with enterprise-
       class encryption

       Push Notifications
       Dispatch real-time alerts directly to mobile
       devices
• 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
Apache Cordova
(formerly PhoneGap)


Native Access
Cross Platform
Plugin Framework
Camera Demo
SmartStore
An offline,
schema-less,
encrypted data store
NFC Example



 http://www.youtube.com/
 watch?v=nXq409WsI1E
       &feature=plcp
forcedotcom
   joshbirk
http://developer.force.com/mobilesdk
Joshua Birk, Developer Evangelist


                                    @joshbirk

                                    joshua.birk@salesforce.com

                                    http://github.com/joshbirk

Mobile SDK + Cordova

Editor's Notes

  • #2 Salesforce.com provides a host of Mobile SDK’s – Native, Hybrid, HTML5 – to help streamline your mobile app development efforts.These SDK’s are the fastest way to connect mobile apps on the extended Salesforce platform. In fact, they were designed so you can mobile-enable features from any of the major platforms that Salesforce offers.Mobile SDK’s can be found online at developer.force.com/mobile along with a handy developer workbook.
  • #3 Of course, the tools to manage mobile apps and build custom configurations are always right inside Salesforce.Salesforce takes the pain out of configuring custom mobile apps – no 3rd-party developer shops, no 12-month timelines. Just easy-to-use development tools.Salesforce SDK’s are available for building 3 key types of apps: Native apps, Hybrid or “Container-ized” apps, and pure web-based apps using HTML5.-----------------------------------------------There are advantages and disadvantages to each type of application.NATIVE APPS Pros: • Rich user experience capable of leveraging complete native device capabilities such as offline storage and a full library of touch-based gestures. • App store distribution makes apps easy for users to find, download and use. • Proven path for developing mobile solutions. Cons: • Platform-specific. • The same product update must be made for each platform separately – no easy push updates. EXAMPLE: Evernote, an app that requires the full horsepower of a phone to search images, combine text, voice, and photos-----------------------------------------------HYBRID APPS Pros: • Best of both worlds – possesses qualities of both native and web-based apps such as single sign-on, native device capabilities like camera and address book. • Easier multi-platform support – Lightweight, native “container” easier to develop across multiple platforms than a native app. Cons: • Minimal EXAMPLE: netflix. Carries the same, instantly updatable UI on tablets, smart phones, tvs, and DVD players-----------------------------------------------HTML5 APPS Pros: • Fast platform to develop on – abundance of developer resources. • Works instantly across multiple device platforms. • Updates can be pushed instantly to all users – no app updates required Cons: • Cannot take advantage of device capabilities like the camera. • No offline capabilities – connection required 100% of the time. EXAMPLE: financial times, for online article browsing-----------------------------------------------
  • #9 # describe using XIB, attaching delegates