On this page

Unity SDK configuration

Configuration for Android

  1. Configure your workspace key in AndroidManifest.xml file.

When using Proguard or R8, add the following rules to your custom Proguard file.

Configuration for iOS

Add workspace key to your Info.plist file:

  • Create Survicate Dictionary.
  • Define WorkspaceKey String in Survicate Dictionary.

Your Info.plist file should look like this:

Info.plist example

As an alternative to the main way of specifying the Workspace Key, you can also use the SetWorkspaceKey() method.

Important:

  • Using SetWorkspaceKey() method overrides the Workspace Key defined in the configuration.
  • SetWorkspaceKey() method must be used before Initialize() method is called.

Initialization

Initialize the SDK in your application using Initialize() method. Call this method only once, in the main script of your project.