add-mobile-sdk-android

Configure Salesforce Mobile SDK dependencies, initialization, and OAuth in Kotlin Android apps.

58|63|Updated Oct 26, 2016
One-click install
npx skills add https://github.com/forcedotcom/SalesforceMobileSDK-Templates --skill add-mobile-sdk-android
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-mobile-sdk-android
Source: https://github.com/forcedotcom/SalesforceMobileSDK-Templates/tree/main/.claude/skills/add-mobile-sdk-android
Command: npx skills add https://github.com/forcedotcom/SalesforceMobileSDK-Templates --skill add-mobile-sdk-android

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MobileSync, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Enables Android developers to easily incorporate Salesforce Mobile SDK into their existing Kotlin applications, streamlining authentication and SDK setup.

Core Features & Use Cases

  • Dependency Addition: Automatically includes the MobileSync SDK in Gradle configuration.
  • SDK Initialization: Sets up MainApplication to initialize the SDK on app startup.
  • Configuration Setup: Creates bootconfig.xml and servers.xml with OAuth and server details.
  • UI Integration: Extends MainActivity with SalesforceActivity to manage login flows.
  • Use Case: A developer adds Salesforce features to an existing Kotlin app to enable secure user authentication and data synchronization.

Quick Start

Use the add-mobile-sdk-android skill to add Salesforce SDK, configure authentication, and initialize SDK components in your Android project.

Frequently Asked Questions about add-mobile-sdk-android

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate the Salesforce Mobile SDK into an existing Android Kotlin app?

To integrate the Salesforce Mobile SDK into an Android Kotlin app, you need to manually edit your Gradle build files to add the MobileSync dependency, initialize the SDK in your MainApplication, and configure OAuth details. This setup enables secure login and interaction with Salesforce services within your app environment.

How do I configure OAuth authentication for Salesforce services in Android?

Configuring Salesforce OAuth authentication in Android requires creating specific XML files. You must generate a bootconfig.xml and servers.xml to define your OAuth parameters and server details, ensuring your app can manage login flows securely.

What do I need to set up Salesforce Mobile SDK in my Kotlin project?

Setting up the Salesforce Mobile SDK requires a Kotlin Android project where you can manually edit build files and the manifest. You must also include the MobileSync dependency and configure XML files to establish proper server connectivity and SDK initialization.

Does Salesforce Mobile SDK integration require manual manifest and build file edits?

Yes, integrating the Salesforce Mobile SDK requires manual editing of your Android project's build files and manifest. You also need to manually create configuration XML files to properly initialize the SDK and set up authentication.

How do I manage Salesforce login flows in my Android MainActivity?

To manage Salesforce login flows in Android, you extend your MainActivity with SalesforceActivity. This UI integration handles the OAuth login process, allowing users to securely authenticate and interact with Salesforce services directly within the app.