OCX Mobile SDK iOS

This guide will walk you through the setup process to integrate the Oracle CX Mobile SDK with your project.

In this topic:

Step 1 - Download the SDK

  1. Download the Oracle CX Mobile SDK for iOS.

Step 2 - Import Oracle CX Mobile SDK

Note: If your app is already using the OCX Responsys Mobile SDK, then update to the latest SDK by downloading and replacing the new OCX Responsys Mobile SDK and Oracle.json.

First let's import the Oracle CX Mobile SDK into the XCode project. These steps are relevant as of Xcode version 11.

  1. Open Xcode.
  2. Navigate to Project Navigator.
  3. Select Target.
  4. Select General Tab.
  5. Navigate to Frameworks > Libraries > Embedded Content section.
  6. Add new framework by selecting + icon and then click Add Other > Add Files.
  7. Select OracleCXMobileSDK.xcframework from your local system.

Note: The SDK has already been configured with default values for all the parameters except for the ora_dc_account_guid parameter which is your unique identifier on the data collection server under which all your collected data from all your mobile apps is stored. You could configure the ora_dc_account_guid parameter using the process shared here.

Step 3 – Import Oracle.json

Similarly, drag-and-drop the Oracle.json to your project. In the Oracle.json, it is important to add your Oracle Infinity Account GUID to the attribute ora_dc_account_guid.

  • You may choose to leave the other attributes as-is. A description of the attributes and their purpose is available here.

Step 4 – Load the Configurations

Add the following code to the didFinishLaunchingWithOptions method in AppDelegate.m file.

ORACoreDataContainer *coreContainer = [[ORACoreDataContainer alloc] init];
[coreContainer loadFromConfigFile];

Next steps

See the step-by-step guide on how to integrate the OCX Responsys iOS SDK here.