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
- Copy the files from the repository's
Plugins/iOSdirectory (SurvicateNativeBridgeIOS.mm,SurvicateNativeListener.h,SurvicateNativeListener.m) toAssets/Plugins/iOSin your Unity project. - Download the latest iOS SDK from here, unzip it and copy
Survicate.xcframeworkto your exported Xcode project folder.
Inside your exported Xcode project, on Build Phases -> Link Binary With Libraries, add Survicate.xcframework
Android
- Copy the files from the repository's
Plugins/Androiddirectory (SurvicateNativeBridgeAndroid.java,SurvicateNativeEventListener.java) toAssets/Plugins/Androidin your Unity project. - Define
https://repo.survicate.comMaven repository in one of the following ways:
- Add Survicate SDK dependency to your app's
build.gradlefile.