What’s New in Mobile SDK 12.2

Mobile SDK 12.2 is a minor release that features QR code login, visionOS support, refresh behavior enhancements, and modernized support for iOS and Android.

In interim releases, we often deprecate items in native libraries for removal in an upcoming major release. Be sure to check your compiler logs for deprecation warnings so that you can address any changes before they go into effect.

These changes apply to more than one platform.

  • React Native: 0.74.5

When displaying a Salesforce UI in a webview or external browser without requiring users to reenter their credentials, we now use the Single Access UI Bridge API (UI Bridge API for short) to construct the frontdoor URL, which was previously constructed manually. See also:

With the help of Apex classes, Visualforce Pages, UI Bridge API, and new Mobile SDK methods, we can now log users in with a QR code. To learn more about QR code login and how to set it up, see:

We enhanced our token refresh behavior for 403 (Bad_OAuth_Token) responses. Where apps previously managed a 403 response by performing a preliminary REST call to update the access token, we now refresh the token automatically.

The new refresh behavior impacts the /service/oauth2 endpoint and helps with our new REST wrapper for UI Bridge API.

See also: General Updates in Mobile SDK 12.2.

We successfully tested Mobile SDK for compatibility with iOS 18 and XCode 16. See Apple’s iOS 18 Release Notes.

We added support for visionOS. See Add visionOS as a supported destination for your app in Apple's documentation.

Check your compiler warnings, or see iOS Current Deprecations.

See also: General Updates in Mobile SDK 12.2.

  • Android Gradle Plugin: 8.6.1

We fixed a bug that sometimes caused the login screen to relaunch after a successful authentication.

This bug fix introduced a breaking change. If your app overrides LoginActivity or uses advanced authentication, change the launch mode from 'singleTop' to 'singleTask'. 

We successfully tested Mobile SDK for compatibility with Android 15. See Android Version 15.

Note: Apps that target SDK 35 on Android 15 now display edge-to-edge. To change the color of the status bar, override the sf__api_35_status_bar_color resource.

In hybrid remote applications, we now use session IDs, sourced from the login and refresh token endpoints, to load the app’s start page. This replaces the behavior in previous versions, which relied on a frontdoor URL to establish a UI session.

Note: This feature requires hybrid authentication, which is enabled by default. To verify the hybrid authentication setting, verify that the useHybridAuthentication property in SalesforceSDKManager is set to true.

Check your compiler warnings, or see Android Current Deprecations.