Skip to content

Releases: forcedotcom/SalesforceMobileSDK-iOS

Salesforce Mobile SDK 9.1

20 May 22:50

Choose a tag to compare

What's New in Salesforce Mobile SDK 9.1

Mobile SDK 9.1.0 is an interim release that features non-breaking API changes and modernized iOS support.

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.

How to Upgrade Your Apps

To upgrade your Mobile SDK apps, follow the instructions at Migrating from the Previous Release.

General Updates

Catalyst Support

  • Mobile SDK 9.1 brings Catalyst support to its iOS native libraries. You can now build your iPad apps to run on Intel and Silicon Macs.

iPad Support in Sample Apps

REST API Wrapper Update

  • We’ve added a batchSize parameter to requestForQuery methods of SFRestApi (Objective-C) and RestClient (Swift). Use this parameter to specify a preferred number of records to be returned in each fetch. Permissible values range from 200 to 2,000
    (default setting). To allow for run-time performance adjustments, Mobile SDK doesn’t guarantee that your requested size will be the
    actual batch size.

SmartStore Query Enhancement

  • Smart SQL no longer requires index paths for fields referenced in SELECT or WHERE clauses.

Key-Value Stores, Version 2

  • Key-value store version 2 debuts in 9.1. With version 2, you can use key-value store APIs to retrieve all keys from the store.
  • The Inspect Key-Value Store option of the Dev Support menu now lets you search for all keys that match a given partial or whole key name.

SOQL Sync Down Target Enhancement

  • You can now configure the size for SOQL sync down batches. You can specify any value from 200 to 2,000 (default value).

Deprecations

Salesforce Mobile SDK 9.0

11 Feb 01:06

Choose a tag to compare

What's New

iPadOS Support

  • Implemented multiple window support for iPadOS. This new feature requires changes to existing apps that intend to run on iPads.
  • Improved support for landscape mode on iPadOS. (Other than updating to Mobile SDK 9.0, no app changes required.)

Mobile Sync

  • Parent-Child sync-up now supports an external ID field to help prevent the creation of duplicated records. See Syncing Up by External ID.

React Native

  • React Native for Mobile SDK now supports TypeScript for development, in addition to plain JavaScript. Mobile SDK components have been updated to use types. See React Native Development.
  • Dependencies are auto-linked in applications generated by forcereact.

Miscellaneous

  • The Dev Support menu offers a new utility: Inspect Key-Value Store. Use this tool to see what's in your app's key-value store during debugging. See In-App Developer Support.

Version Updates

  • Deployment target: iOS 13
  • Base SDK: iOS 14
  • Xcode 12
  • CocoaPods 1.8.0 (no maximum)
  • Cordova 6.1.1
  • Cordova Command Line 10.0.0
  • SQLCipher: 4.4.2
  • SQLite 3.33.0
  • React Native: 0.63.4
  • yarn 1.2.2
  • TypeScript compiler 4.1.2

Salesforce Mobile SDK 8.3

30 Sep 21:19

Choose a tag to compare

What's New

  • Successfully tested Mobile SDK and our sample apps on Xcode 12 and iOS 14.
  • Added the userInterfaceStyle property to SFSDKWindowManager to allow you to override the user interface mode.

Version Updates

  • React Native: 0.63.2

Salesforce Mobile SDK 8.2

21 Jul 01:15

Choose a tag to compare

What's New

  • Added an encrypted key-value store as a performance-oriented storage option that complements relational SmartStore soups. Key-value stores offer a simple, non-relational, opaque collection of values that you can reference only by key.
  • Added REST API wrappers to support Notification Builder API resources.
  • Added decryption of Notification Builder push notifications. To support decrypted push notifications, your app must incorporate a
    boilerplate iOS class extension.
  • New Swift template app that provides a boilerplate decryption extension for notifications: iOSNativeSwiftEncryptedNotificationTemplate.
  • Updated Swift template app that demonstrates a custom Notification Builder notifications tray: MobileSyncExplorerSwift.
  • Improved REST API methods with full response in error callback.

Version Updates

  • SQLCipher: 4.4
  • SQLite: 3.31.0
  • CocoaPods: Minimum 1.7.2, no declared maximum
  • React Native: 0.62.2

Hybrid

  • A solution for running Lightning Web Components in Mobile SDK hybrid remote apps, using Lightning Out in Visualforce.
  • New template app demonstrating Lightning Web Components in a hybrid remote app: HybridLwcTemplate
  • Richer error messages for network calls made through the Salesforce Cordova plugin.

React Native

  • New template app demonstrating deferred login: ReactNativeDeferredTemplate
  • Richer error messages for network calls made through the Salesforce network module.

Mobile Sync Enhancements

  • Improved LayoutSyncManager functionality to support all parameters of the underlying Salesforce API.
  • Richer (and parsable) error captured in __last_error__ field.

Salesforce Mobile SDK 8.1

13 Feb 01:37

Choose a tag to compare

What’s New

Mobile SDK 8.1 is an interim release that addresses the upcoming App Store deadlines for deprecating UIWebView usage.

Version Updates

  • Cordova: v 5.1.1 (Hybrid only)

Hybrid

Mobile SDK 8.1 for iOS removes all remaining references to the UIWebView control. To submit new or updated iOS hybrid apps to the App Store after the App Store deadlines, you must upgrade them to Mobile SDK 8.1 or later. For details, see this Apple Developer News release.

Due to the removal of UIWebView, hybrid remote apps can no longer use localhost to store resources on the mobile device. Reconfigure these apps to store and access resources on the server.

Deprecations

SalesforceSDKManager

@property (nonatomic, assign) BOOL encryptURLCache;:

  • Deprecated in Mobile SDK 8.1 for removal in Mobile SDK
    9.0.

  • Comments: Use URLCacheType instead.

SFSDKWebViewStateManager

+ (void)resetSessionWithNewAccessToken:(NSString *)accessToken isSecureProtocol:(BOOL)isSecure;:

  • Deprecated in Mobile SDK 8.1 for removal in Mobile SDK
    9.0.

  • Comments: Use resetSessionCookie instead.

Removed in Mobile SDK 8.1

All references to UIWebView (deprecated in Mobile SDK 6) have now
been removed.

Check your compiler warnings, or see iOS Current Deprecations.

Salesforce Mobile SDK 8.0

12 Dec 20:59

Choose a tag to compare

What’s New

  • Swift extensions for iOS 12 and iOS 13. For iOS 13, these
    extensions use publishers for Combine and SwiftUI.

  • New iOS 13 template demonstrating offline features,
    master-detail views for Account and related Contact records,
    SwiftUI, SceneDelegate, and publishers for REST APIs, , and Mobile Sync.

  • For logins and authentication, replaced SFAuthenticationSession with ASWebAuthenticationSession.

  • Full content notification support.

  • Dark mode support, demonstrated in updated templates and sample
    apps.

  • New classes for batch and composite requests. See

Version Updates

  • iOS deployment target: 12.2

  • iOS base SDK: 13

  • Xcode: 11

SmartStore Enhancements

  • Queries can return either a JSON object (best choice for native) or a String (best choice for hybrid and RN).

  • Swift extensions for iOS 12 and iOS 13 (publishers for Combine
    and SwiftUI)

  • Validation tool for JSON configuration files.

Mobile Sync Enhancements

  • Sync up by external ID: For locally created, updated, or deleted SmartStore records that specify an external ID field and provide its value, Mobile SDK performs an upsert instead of an update. However, if the record also contains a Salesforce ID, Mobile Sync performs an update.

  • Swift extensions for iOS 12 and iOS 13 (publishers for Combine
    and SwiftUI)

  • Validation tool for JSON configuration files.

Deprecations

Check your compiler warnings, or see iOS Current
Deprecations
.

Mobile SDK 7.3.0

16 Sep 23:29

Choose a tag to compare

What’s New

  • Successfully tested Mobile SDK and our sample apps on Xcode 11 and iOS 13. Found and fixed one bug.
  • Added a method for obtaining an OpenID token that you can use against sanctioned non-Salesforce endpoints.
    -(void)openIDTokenForRefresh:(SFSDKOAuthTokenEndpointRequest )endpointReq completion:(void (^)(NSString ))completionBlock on the SFSDKOAuth2 class.
  • Refactored the SFNetwork class and the SFNetworkSessionManaging protocol.
  • Contents of the shared URL cache (cache.db) are now encrypted by default. You can disable this encryption by setting the new encryptURLCache property of SalesforceSDKManager.

Bug fixes

SmartStore

  • Fixed a rarely encountered bug that occurred when writing to external storage. See #2982.

SmartSync Data Framework

  • Fixed a batch sync up bug. See #2977.
  • Fixed a time format bug that impacted certain locales. See #2965.

Version Updates

  • CocoaPods: 1.7 and 1.8 (master repo CDN support).

Deprecations

Check your compiler warnings, or see iOS Current Deprecations.