add-smartstore-ios

Integrate Salesforce SmartStore into iOS Swift apps for encrypted local storage.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables iOS developers to incorporate Salesforce's encrypted local database, SmartStore, into their existing Swift applications, enhancing offline data capabilities.

Core Features & Use Cases

  • Dependency Management: Adds SmartStore via CocoaPods or Swift Package Manager, matching the app’s current setup.
  • SDK Upgrade: Replaces SDK initialization with SmartStoreSDKManager for proper SmartStore support.
  • Store Initialization: Configures user-specific store post-login, with a verification label.
  • Use Case: Use this Skill when you need to add local encrypted data storage in your Salesforce-integrated iOS app to enable offline access and synchronization.

Quick Start

Add the SmartStore dependency to your project, update your AppDelegate to initialize SmartStoreSDKManager, and set up store configuration in your SceneDelegate after login.

Frequently Asked Questions about add-smartstore-ios

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

FAQPage Schema
How do I add Salesforce SmartStore to my iOS Swift app for offline storage?

To add Salesforce SmartStore for offline storage, integrate the dependency via CocoaPods or Swift Package Manager, update your AppDelegate to initialize SmartStoreSDKManager, and configure the user-specific store in your SceneDelegate after login.

What is Salesforce SmartStore used for in iOS applications?

Salesforce SmartStore provides an encrypted local database within iOS applications, enabling secure offline data storage and synchronization specifically for apps already integrated with the Salesforce ecosystem.

Does SmartStore require the Salesforce SDK to work on iOS?

Yes, SmartStore requires the Salesforce SDK. You must replace standard SDK initialization with SmartStoreSDKManager during setup to properly support encrypted local database functionalities within your Swift app.

How do I configure SmartStore initialization after user login in Swift?

Configure SmartStore initialization after login by setting up the user-specific store within your SceneDelegate. This ensures the encrypted local storage is correctly configured for the authenticated Salesforce user session.

Can I use Swift Package Manager to install the Salesforce SmartStore SDK?

Yes, you can install the Salesforce SmartStore SDK using Swift Package Manager. The integration process matches your app's current dependency setup, supporting both SPM and CocoaPods for adding the required frameworks.

Why do I need to replace my SDK initialization with SmartStoreSDKManager?

Replacing standard SDK initialization with SmartStoreSDKManager is required to properly enable SmartStore support. This upgrade ensures your iOS app can correctly manage encrypted local data and offline functionalities aligned with Salesforce requirements.