Advanced

Manual installation

  1. First, download and unzip the latest version of the iOS SDK.
  2. Drag .framework into the top level of your Xcode project. When prompted, use the checkboxes to add the framework to the specific target for which you are compiling. Make sure you check the Copy items if needed box.
  3. In your application target you need to add a Copy Files build phase to your target. From the Build Phases panel of your target's configuration:

    1. Press the + button from the top left region
    2. Select New Copy Files Phase. A new entry will appear in the Build Phases list.
    3. Change the destination selector to Frameworks
    4. Find the Accengage.framework and drag it into this new section.

  4. Add a new Run Script Phase and paste the content of the this script in the newly added section. This script works around an App Store submission bug triggered by universal frameworks.
  5. Verify Enable Modules and Link Frameworks Automatically are enabled in the target Build Settings.

Embedded web content tracking

If your app has embedded web content, you can also take advantage of all the Tracking features. You can also update custom field values. To do so, use a A4SWebView object instead of UIWebView object.

The next step will be to tag your web content. To do so, follow this documentation.

Get the device ID

[Accengage shared].accengageId
Accengage.shared()?.accengageId

Stop all services

[Accengage suspendAllServices:YES]
Accengage.suspendAllServices(true)

Disable all network calls

[Accengage setNetworkCallsDisabled:YES]
Accengage.setNetworkCallsDisabled(true)

Get the version

[Accengage version]
Accengage.version()

SDK Size

The SDK will increase your app download size by ~580 Ko.