Unity SDK
The latest tagged Unity release is v1.0.2. Its package bundles RapidoReach-1.0.2.aar for Android and a RapidoReach.xcframework for iOS. The Android native 1.1.0 Maven package is a separate release; importing the Unity package does not install it.
Install
- Create a publisher app and copy its mobile SDK API token.
- Download
RapidoreachUnitySDK.unitypackagefrom the tagged Unity release. - In Unity, choose Assets → Import Package → Custom Package and import it.
- Confirm the
RapidoReach.csbridge, Android AAR, and iOS xcframework are present underAssets/Plugins. - Build for Android or iOS. The offerwall must be tested on a device; it does not open in the Unity Editor.
Show the offerwall
Attach this script to a GameObject. Use a stable ID from your app for the signed-in user. Replace the placeholder token with your development app's token.
using UnityEngine;
public class RewardWall : MonoBehaviour
{
[SerializeField] private string apiToken = "YOUR_API_TOKEN";
[SerializeField] private string userId = "YOUR_APP_USER_ID";
private void Start()
{
#if UNITY_ANDROID || UNITY_IOS
RapidoReach.Initialize(apiToken, userId);
RapidoReach.SetListener(gameObject.name);
#endif
}
public void Open()
{
#if UNITY_ANDROID || UNITY_IOS
RapidoReach.ShowRewardCenter();
#endif
}
private void OnReward(string quantity)
{
// Update the UI, then verify the reward on your server.
Debug.Log("RapidoReach reward event: " + quantity);
}
private void OnRewardCenterOpened() { }
private void OnRewardCenterClosed() { }
private void RapidoReachSurveyAvailable(string available) { }
}
Call Open() from a button in your app. The published bridge also supports SetUserIdentifier, availability checks, and navigation bar customization; see the Unity repository for API details.
Reward verification
Configure a server-to-server callback in the publisher dashboard and test it before launch. Do not credit a user solely from OnReward, the offerwall closing, or a browser redirect. Match the callback user ID to your app user and process each verified transaction once.