
Mobile SDK Development Guide Salesforce Mobile SDK 7.0 (iOS Native, Android Native, React Native, and Hybrid) @salesforcedocs Last updated: January 8, 2019 © Copyright 2000–2018 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc., as are other names and marks. Other marks appearing herein may be trademarks of their respective owners. CONTENTS Chapter 1: Introduction to Mobile Development . 1 About Salesforce Mobile Apps . 2 Customize the Salesforce App, or Create a Custom App? . 2 About This Guide . 4 Version . 4 Sending Feedback . 4 Chapter 2: Introduction to Salesforce Mobile SDK Development . 5 About Native, HTML5, and Hybrid Development . 6 Enough Talk; I’m Ready . 8 Chapter 3: What's New in Mobile SDK 7.0 . 9 What Was New in Recent Releases . 12 Chapter 4: Getting Started With Mobile SDK 7.0 for iOS and Android . 17 Developer Edition or Sandbox Environment? . 18 Development Prerequisites for iOS and Android . 19 Sign Up for Lightning Platform . 20 Creating a Connected App . 20 Create a Connected App . 20 Installing Mobile SDK . 22 Install Node.js, npm, and Git Command Line . 22 Mobile SDK npm Packages . 23 iOS Preparation . 23 Android Preparation . 24 Uninstalling Mobile SDK npm Packages . 24 Mobile SDK GitHub Repositories . 25 Mobile SDK Sample Apps . 26 Installing the Sample Apps . 26 Chapter 5: Updating Mobile SDK Apps (5.0 and Later) . 29 Using Maven to Update Mobile SDK Libraries in Android Apps . 31 Chapter 6: Native iOS Development . 32 iOS Native Quick Start . 33 Native iOS Requirements . 33 Creating an iOS Swift Project Manually . 33 Detailed Instructions for Manual Project Creation . 35 Creating an iOS Project with Forceios . 39 Run the Xcode Project Template App . 42 Contents Using a Custom Template to Create Apps . 42 Use CocoaPods with Mobile SDK . 45 Refreshing Mobile SDK Pods . 48 Using Carthage with Mobile SDK . 49 Developing a Native iOS App . 50 About Login and Passcodes . 51 About Memory Management . 51 Using Swift with Salesforce Mobile SDK . 51 Overview of Application Flow . 52 SDK Manager Classes . 53 AppDelegate Class . 56 RootViewController Class . 60 About Salesforce REST APIs . 62 Handling Authentication Errors . 78 Using iOS App Extensions with Mobile SDK . 79 Customizing the List Screen in Objective-C . 86 iOS Sample Applications . 95 Chapter 7: Native Android Development . 96 Android Native Quick Start . 97 Native Android Requirements . 97 Creating an Android Project with Forcedroid . 98 Using a Custom Template to Create Apps . 101 Setting Up Sample Projects in Android Studio . 104 Android Project Files . 104 Developing a Native Android App . 105 Android Application Structure . 105 Native API Packages . 107 Overview of Native Classes . 107 Using Passcodes . 117 Resource Handling . 118 Using REST APIs . 120 Unauthenticated REST Requests . 122 Deferring Login in Native Android Apps . 123 Android Template App: Deep Dive . 125 Tutorial: Creating a Native Android Warehouse Application . 128 Prerequisites . 128 Create a Native Android App . 130 Customize the List Screen . 132 Create the Detail Screen . 135 Android Sample Applications . 144 Chapter 8: HTML5 and Hybrid Development . 145 Getting Started . 146 Contents Using HTML5 and JavaScript . ..
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages512 Page
-
File Size-