Mobile framework for Appbooster platform.
- Download *.unitypackage file and open it with Unity
At the program start init SDK
using AppboosterSDK;
AppBooster.Initialize(
sdkToken: "${YOUR_SDK_TOKEN}",
appId: "${YOUR_APP_ID}",
deviceId: "${YOUR_DEVICE_ID}", // optional, UUID generated by default
appsFlyerId: "${YOUR_APPS_FLYER_UID}", // optional, use AppsFlyer.getAppsFlyerId() if AppsFlyer integration is needed
amplitudeUserId: "${YOUR_AMPL_USER_UID}", // optional, set Amplitude userId if Amplitude integration is needed
usingShake: false, // true by default for debug mode, turn it off if you are already using shake motion in your app for other purposes
debugLogs: true, // false by default. set to true for verbose logging
defaults: new []
{
("${TEST_1_KEY}", "${TEST_1_DEFAULT_VALUE}"),
("${TEST_2_KEY}", "${TEST_2_DEFAULT_VALUE}")
}),
deviceProperties: new []
{
("${TEST_1_KEY}", "${TEST_1_DEFAULT_VALUE}"),
("${TEST_2_KEY}", "${TEST_2_DEFAULT_VALUE}")
});;
private async void FetchDataAsync()
{
try
{
await AppBooster.FetchAsync();
}
catch (Exception e)
{
Debug.LogError($"Error fetching data: {e}");
}
}
var value = AppBooster.GetValue("${TEST_KEY}");
In case of problems with no internet connection or another, the values obtained in the previous session will be used, or if they are missing, the default values specified during initialization will be used.
var experiments = AppBooster.GetExperiments();
// or if you need additional details for experiments
var experimentsWithDetails = AppBooster.GetExperimentsWithDetails();
Appsflyer users can integrate Appbooster sdk with analytics as shown below:
var experiments = AppBooster.GetExperiments();
// or if you need additional details for experiments
// var experimentsWithDetails = AppBooster.GetExperimentsWithDetails();
AppsFlyer.setAdditionalData(experiments);
Amplitude users can integrate Appbooster sdk with analytics as shown below:
var experiments = AppBooster.GetExperiments();
// or if you need additional details for experiments
// var experimentsWithDetails = AppBooster.GetExperimentsWithDetails();
var userProperties = experiments.ToDictionary(x => x.Key, x => (object)x.Value);
Amplitude.Instance.setUserProperties(userProperties);
Before debug make sure that debug-mode for your App is turned-on on settings page
AppBooster.Initialize(
...
debugLogs: true, // false by default. set to true for verbose logging
...
);
In debug mode you can see all actual tests and check how the user will see each option of the test. To show the debug activity you just need to turn it on in your personal cabinet and call
AppBooster.LaunchDebugMode();
By default debug activity will be shown by performing shake motion on your device.
==================================================
You can see the example of usage in AppBoosterExample.cs
file in this project.