quickly build a native mobile app for your community using salesforce mobile sdk

13
Quickly Build a Native Mobile App for Your Community Using Salesforce Mobile SDK Michael Welburn Senior Technical Architect, 7Summits [email protected] @MichaelWelburn

Upload: michael-welburn

Post on 08-Jan-2017

1.070 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Quickly Build a Native Mobile App for Your Community Using Salesforce Mobile SDK

Michael WelburnSenior Technical Architect, [email protected]@MichaelWelburn

Page 2: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Michael WelburnSenior Technical Architect, 7Summits

Page 3: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Cannot brand app; Customer must download Salesforce1 appInterface is tied to Salesforce1 platformRequires custom community URL to be configured for each user’s device

Not downloadable from app storeAllows custom brandingOne codebase; Takes advantage of site built with responsive / mobile in mind

Downloadable from app storeAllows custom brandingRequires additional overhead to maintain a separate codebase

Salesforce1 Responsive Website Native (Mobile) Application

Ideal for Partner / Customer Community

Ideal for Employee Community Ideal for Partner / Customer Community

Communities & Mobile Options

Page 4: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Mobile Architecture Options

Page 5: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Salesforce Mobile SDK

Expedite mobile application development by providing authentication, record syncing, etc.Allows 3 options: Native – completely custom implementation in native iOS or Android code Hybrid Local – completely custom implementation in HTML & Javascript Hybrid Remote – container of your existing responsive Visualforce-based

website

Michael Welburn
Add architecture diagrams (perhaps 3 slides)
Page 6: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Basic Setup Requirements

For iOS: Mac Computer with Xcode

For Android: Eclipse or Android Studio Android SDK Tools Android Emulator

For guided installation: Node.js & Node Package Manager (npm)

Page 7: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Mobile SDK Demo

Michael Welburn
Show picture of the app here
Page 8: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Files to Modify

Salesforce modifications: Connected app – used during the authentication process API Enabled – profile or permission set Community Members – add profile or permission set of users to CommunityMobile application files to modify: [appname].plist – denotes the community URL you are authenticating against (iOS) servers.xml – denotes the community URL you are authenticating against (Android) bootconfig.json – basic configuration of your application starting behavior and

connected app config.xml – configuration of plugins, application security, etc.

Page 9: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Cordova

Cordova plugins will enhance the experience without requiring additional code, and can be searched at the Cordova Plugin Registry (http://plugins.cordova.io)Recommended plugins: StatusBar (http://plugins.cordova.io/#/package/org.apache.cordova.statusbar) InAppBrowser (http://plugins.cordova.io/#/package/org.apache.cordova.inappbrowser

) Calendar (http://plugins.cordova.io/#/package/nl.x-services.plugins.calendar)

Page 10: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Cordova Plugin Demo

Page 11: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Implementation Summary

Leverage forceios and forcedroid to bootstrap your installationChoose the hybrid_remote optionConfigure the necessary files in the mobile applicationEnsure you update the server URL to your communityInstall applicable cordova pluginsUpdate any icons or background images for your application prior to an official deployment

Page 12: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Reference Links

Trailhead: Developer Trail – Mobile SDK: https://developer.salesforce.com/trailhead/trail/mobile_sdk_introSalesforce Mobile SDK Home: https://developer.salesforce.com/page/Mobile_SDKSalesforce Mobile SDK Development Guide: https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/Node Package Manager: https://docs.npmjs.com/getting-started/installing-nodeforceios: https://www.npmjs.com/package/forceiosforcedroid: https://www.npmjs.com/package/forcedroidCordova Plugin Registry: http://plugins.cordova.io/

Page 13: Quickly Build a Native Mobile App for your Community using Salesforce Mobile SDK

Thank you