This simple app demonstrates how to integrate the TapResearch Unity SDK in your app.
- Clone the repo
$ git clone git@github.com:TapResearch/unity-integration-demo.git-
Start unity and open the folder
-
If you want to see things in action make sure you add your Unity api token and a user identifier in
TestButtonClick.cs
@Override
void Start ()
{
surveyButton.gameObject.SetActive (false);
TapResearch.Configure ("<api_token>");
TapResearch.OnSurveyAvailable = this.OnSurveyAvailable;
TapResearch.SetUniqueUserIdentifier ("<user_identifier>");
TapResearch.OnDidReceiveReward = this.OnDidReceiveReward;
TapResearch.OnSurveyModalOpened = this.OnSurveyModalOpened;
TapResearch.OnSurveyModalDismissed = this.OnSurveyModalDismissed;
}
- Please note that the SDK only works for iOS or Android and not for the default player