Skip to content

Releases: salesforce/AgentforceMobileSDK-ReactNative

260.4 - Agentforce Mobile SDK - React Native

27 Apr 01:47
8e2e1ba

Choose a tag to compare

Agentforce Mobile SDK — React Native Bridge Release Notes

Overview

A React Native bridge for embedding Salesforce Agentforce agents into iOS and Android apps. Supports two modes: Service Agent (anonymous, customer-facing) and Employee Agent (authenticated via Salesforce OAuth) — built from a single shared codebase.


Features

Dual Agent Modes

  • Service Agent — No login required. Configure with a Service API URL, Org ID, and Agent Developer Name.
  • Employee Agent — OAuth-authenticated via Salesforce Mobile SDK. Includes full login/logout/token refresh lifecycle.

Conversation Management

  • Launch, resume, restart, and close conversations through a simple async API.
  • Conversations persist across UI dismissals so users can pick up where they left off.

Context Variables

  • Pass personalized data (text, numbers, booleans, dates, objects, lists) into conversations so the agent can tailor its responses.

Hidden Pre-Chat Fields (Service Agent)

  • Pre-populate invisible form fields (e.g. ContactId, AccountId) before launching a conversation.

Delegates

  • Logger — Forward native SDK logs (error/warn/info/debug) into JavaScript for debugging.
  • Navigation — Intercept taps on records, links, quick actions, and page references to handle them in your app.
  • Custom View Provider — Replace built-in SDK views with your own React Native components.

Feature Flags

Control capabilities at runtime with persistent flags:

  • Multi-agent switching
  • Multimodal input (audio/image)
  • PDF upload
  • Voice interaction
  • Custom view rendering

Multi-App Build Support

  • iOS — Separate CocoaPods configurations for each agent type via XcodeGen.
  • Android — Gradle product flavors (serviceAgent / employeeAgent) with conditional Mobile SDK inclusion.

Bug Fixes

  • Fixed intermittent microphone issues with voice input
  • Fixed record rendering issues on iOS and Android
  • Fixed SDK initialization race condition
  • Fixed main-thread safety for conversation creation
  • Fixed Android memory leak in permission handling
  • Fixed dev server port conflicts when running multiple terminals