add-mobilesync-ios

Integrate Salesforce MobileSync into iOS Swift apps via CocoaPods or SPM.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the integration of Salesforce MobileSync into existing iOS Swift applications, enabling efficient cloud data synchronization with minimal manual configuration.

Core Features & Use Cases

  • Dependency Management: Adds MobileSync via CocoaPods or Swift Package Manager, aligning with the app's existing setup.
  • SDK Initialization: Upgrades the SDK manager initialization from SmartStore to MobileSync SDK.
  • Sync Configuration: Sets up user data synchronization by creating a usersyncs.json file and configuring the app to use it after login.
  • Use Case: Developers can enhance their Salesforce iOS app to support cloud data sync with minimal code changes, streamlining offline data management and background sync processes.

Quick Start

Follow the instructions to add MobileSync dependencies, update your SDK initialization, and configure user syncs for your existing app.

Frequently Asked Questions about add-mobilesync-ios

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

FAQPage Schema
How do I add Salesforce MobileSync to my iOS Swift app?

To add Salesforce MobileSync, integrate the dependency via CocoaPods or Swift Package Manager, then upgrade your SDK manager initialization from SmartStore to the MobileSync SDK to enable cloud data synchronization.

Can I configure offline data sync with Salesforce in Swift using SPM?

Yes, you can configure offline data sync using Swift Package Manager to add dependencies, create a usersyncs.json file, and set up the app to use it after login for background sync processes.

What is Salesforce MobileSync and when do I need it in my iOS app?

Salesforce MobileSync is a feature that enables efficient cloud data synchronization and offline data management for iOS apps, needed when your Salesforce mobile app requires local data access and background sync.

Do I need CocoaPods to use MobileSync in my Swift app?

No, you do not need CocoaPods exclusively; MobileSync supports both CocoaPods and Swift Package Manager, allowing you to align the dependency update with your app's existing package manager setup.

How do I set up user data synchronization with the Salesforce SDK?

Set up user data synchronization by creating a usersyncs.json file defining sync configurations, then configure your iOS app to load this file after user login to manage secure data handling.

Why upgrade SDK initialization from SmartStore to MobileSync?

Upgrading SDK initialization from SmartStore to MobileSync is necessary to activate cloud data synchronization features, enabling seamless setup and background sync processes beyond local SmartStore storage.