Build a Mobile App with Mobile Skills
Describe Your App
Start with a single sentence that describes the app you want to build. Include the target platform, the intended users, and the Salesforce data the app should access. The more detail that you include in your first prompt, the more accurately the skill can scaffold the right structure.
Example prompts:
- "Build me a native iOS app for field reps with offline access to Accounts and Contacts."
- "Create an iOS app that shows a list of products from a custom Salesforce object. I should be able to tap each product to check details and stock level. Sync data back to Salesforce and work offline."
- "Generate an Android app for store managers that displays inventory data from Salesforce and lets them add, edit, or delete records."
The skill identifies which SDK family and platform you're targeting, then routes your request to the appropriate sub-skill to handle project creation, authentication, SmartStore configuration, and MobileSync setup.
What Gets Generated
When the skill completes, your project includes:
- A standard Xcode workspace (iOS) or Android Studio project (Android) with a clean, professional structure you can read, refactor, and push to Git.
- Salesforce OAuth login using the standard Salesforce login screen. Token management, refresh, and session persistence are handled by Mobile SDK with no custom authentication code required.
- SmartStore soup definitions and indexing configured for the data your app works with, enabling encrypted on-device storage.
- MobileSync targets with sync down and sync up policies so that data flows bidirectionally between your app and your org. Changes made offline are cached locally and pushed upstream when connectivity returns.
- A native UI displaying real data from your Salesforce org, not a mockup.
Add Features After Generation
After the initial app is generated, describe additional features in follow-up prompts. Each capability maps to a sub-skill that knows the correct implementation patterns.
| Feature | Example Prompt |
|---|---|
| Biometric authentication | "Add Face ID authentication to the app login flow." |
| Agentforce chat panel | "Embed an Agentforce chat panel into the app so users can ask questions about inventory without leaving the app." |
| Additional SmartStore soups | "Add offline support for the Cases object." |
| Custom UI screens | "Add a home screen with a dashboard showing total products, total stock value, and low-stock alerts." |
Tips for Best Results
- Include as much detail as possible in your first prompt. Specify the platform (iOS or Android), the intended users, the Salesforce objects involved, and whether the app needs to work offline.
- Set up and start your iOS Simulator (Xcode) or Android Emulator (Android Studio) before starting generation for the smoothest experience.
- If you add files to the generated iOS project manually, make sure that you also add them to the .xcodeproj file to prevent "file not found" compilation errors. The skill handles this automatically during generation.
- If you need to reference specific Salesforce IDs, such as an Agent ID or Connected App consumer key, the skill guides you on where to find them in your org setup.