On this page

Unity SDK installation

The Survicate Unity SDK is distributed as source files in the survicate-unity-sdk GitHub repository. Clone or download the repository, then copy all .cs files from its Plugins directory to Assets/Plugins in your Unity project. SurvicatePluginIOS.cs and SurvicatePluginAndroid.cs are wrapped in #if UNITY_IOS / #if UNITY_ANDROID, so copying the whole set is safe even if you build for one platform only. The platform-specific native files come next.

iOS

  1. Copy the files from the repository's Plugins/iOS directory (SurvicateNativeBridgeIOS.mm, SurvicateNativeListener.h, SurvicateNativeListener.m) to Assets/Plugins/iOS in your Unity project.
  2. Download the latest iOS SDK from here, unzip it and copy Survicate.xcframework to your exported Xcode project folder.

Inside your exported Xcode project, on Build Phases -> Link Binary With Libraries, add Survicate.xcframework

Android

  1. Copy the files from the repository's Plugins/Android directory (SurvicateNativeBridgeAndroid.java, SurvicateNativeEventListener.java) to Assets/Plugins/Android in your Unity project.
  2. Define https://repo.survicate.com Maven repository in one of the following ways:
  1. Add Survicate SDK dependency to your app's build.gradle file.