Survicate Unity SDK
Requirements
- Using Survicate Mobile SDK requires an account at survicate.com. You can create your account here for free, or become invited to your company account by one of your colleagues.
- Unity 2019.4 or later
- iOS 12.0 or later
- Android 5.0 (API level 21) or later
Installation
iOS
- Add content of the iOS directory to your Assets/Plugins/iOS
- Add SurvicatePluginIOS.cs and file inside your Assets/Plugins
- Download the latest iOS SDK from here. Copy this file to your xcode project folder.
Inside your exported Xcode project, on Build Phases -> Link Binary With Libraries, add
- survicate.xcframework
Android
- Add content of the Android directory to your Assets/Plugins/Android
- Add SurvicatePluginAndroid.cs file inside your Assets/Plugins
- Download the latest android SDK from here. Place the downloaded AAR file inside Assets/Plugins/Android
- Make sure Android is selected as plugin platform on Inspector window
Add dependencies listed in developers documentations here
Configuration
Configuration for Android
- Configure your workspace key in
AndroidManifest.xml
file.
- Add missing Survicate dependencies to your project
build.gradle
located underandroid
directory.
Configuration for iOS
- Add workspace key to your
Info.plist
file.- Create
Survicate
Dictionary. - Define
WorkspaceKey
String inSurvicate
Dictionary. YourInfo.plist
file should looks like this:
- Create
- Run
pod update
in yourios
directory.
Initialization
Initialize the SDK in your application using initializeSdk()
method. Call this method only once, in the main script of your project.
Usage
On your C# script, import