afv-library/samples/native-mobile-rental-tenant-app
Justin Horst 7d10760653
chore: Update native mobile app readme with detailed deployment steps (#169) W-21861732:
@W-21861732 fix: convert native mobile rental tenant app README from RTF to Markdown

The README was accidentally saved in RTF format, causing rendering
issues. Stripped RTF formatting and restored plain Markdown.

Co-authored-by: gbockus-sf <76090802+gbockus-sf@users.noreply.github.com>
2026-04-02 10:32:58 -05:00
..
config @ W-21164311 Mobile sample app (#39) 2026-03-12 10:46:22 -05:00
force-app/main/default/digitalExperiences/experiencecontainer/rentalApp W-21672186: Migrate mobile rental app to data providers and design tokens (#132) 2026-03-30 14:08:10 -05:00
.forceignore @ W-21164311 Mobile sample app (#39) 2026-03-12 10:46:22 -05:00
.gitignore @ W-21164311 Mobile sample app (#39) 2026-03-12 10:46:22 -05:00
package.json @ W-21164311 Mobile sample app (#39) 2026-03-12 10:46:22 -05:00
README.md chore: Update native mobile app readme with detailed deployment steps (#169) W-21861732: 2026-04-02 10:32:58 -05:00
sfdx-project.json @ W-21164311 Mobile sample app (#39) 2026-03-12 10:46:22 -05:00

Native Mobile Rental Tenant App

A sample Agentic Mobile App metadata project for Salesforce. Demonstrates a rental tenant mobile experience scaffold that you can deploy and extend for native iOS or Android.

Table of Contents

  1. What's Included
  2. Prerequisites
  3. Quick Start
  4. Step-by-Step Setup
  5. Testing in the Playground App
  6. Resources

What's Included

Path Description
force-app/main/default/digitalExperiences/experiencecontainer/rentalApp/ Agentic Mobile App Digital Experience metadata for the Rental Tenant app (screen definitions, app metadata, build metadata, and language settings)
config/project-scratch-def.json Scratch org definition file for creating a development org
sfdx-project.json Salesforce project configuration (default package directory, login URL, API version)
package.json Lightweight project scripts for basic build/lint/test placeholders

Prerequisites

Before you begin, ensure the following are in place.

Tool Minimum Version Install
Salesforce CLI (sf) v2+ npm install -g @salesforce/cli
Node.js v22+ nodejs.org
Git Any recent version git-scm.com

Verify your Salesforce CLI version with:

sf --version

Quick Start

Run these commands from this sample directory:

sf org login web --alias <alias>
sf project deploy start --source-dir force-app --target-org <alias>

Replace <alias> with your target org alias or username.


Step-by-Step Setup

Use this section if you prefer to run each step manually.

This project is metadata-first and does not require a local UI build step for deployment.

1. Authenticate Your Org

Log in to your target org using the Salesforce CLI:

sf org login web --alias <alias>

To verify authentication:

sf org display --target-org <alias>

If you are working with a sandbox, use:

sf org login web --alias <alias> --instance-url https://test.salesforce.com

2. Deploy Metadata

Deploy the rental app Digital Experience metadata:

sf project deploy start \
  --source-dir force-app/main/default/digitalExperiences \
  --target-org <alias>

Testing in the Playground App

After deploying your metadata, you can preview the app on a mobile device using the Salesforce Mobile Playground.

  1. In VS Code, open the Command Palette with Cmd+Shift+P and run:

    SFDX: Open in Live Preview
    
  2. A QR code will appear — scan it with your device and follow the on-screen instructions to launch the app in the Playground.


Resources