For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remote Configs

Introduction

Lion - Remote Configs package is designed to help your game studio gain insights into your player base and identify actionable opportunities for growing your audience and revenue.

The features that Remote Configs provides are,

Remote Configs automatically:

  • initializes selected Remote Configs solution (e.g., Firebase)

  • Sets essential properties

  • Logs important data (experiment name, etc.) to Analytics

  • Fetches and stores Feature Flag values

Remote Configs also provides simple functions to:

  • Access Feature Flag (remote configuration) values

  • Fire Events (to assign payers to audiences)

  • Set Custom Properties

Installation Guide

  • Make sure LionSDK is installed. Complete the steps in Getting Started first.

  • Install Lion - Remote Configs from the Unity package manager.

Setup

Remote Configs solution has three types. Either of them can be configured in editor, but only one of them will be used at runtime. The three types of Remote Configs solution are:

Setup instructions for each solution are provided in the links above. After setting it up, you can select it by going to LionStudios → Settings Manager → Remote Configs .

Remote Config Adapter Selection Menu
circle-info

The Remote Configs solutions need to load their values before the gameplay starts. The easiest solution for this is to integrate our Loading Scene module.

Usage

circle-exclamation

Example usage of waiting for remote configs to be initialized:

1

Remote values

Remote values give the ability to change the behavior and appearance of your app without publishing an app update for users.

  • For Firebase, Remote value means Parameters

  • For Test, Remote value means the local list of values present in the editor window

Function signature

This will return the value of the remote values for the current player.

Examples

2

Log Event

Events allow you to send data for a given user to the server for processing.

  • For Firebase, the events are created at runtime, so you just need to call the “LogEvent” function with events.

  • For Test, the events are just Debug logs.

Function signature

Example

3

Fetching data

  • For Firebase, by calling the “FetchAndUpdateRemoteConfig” function, only remote configs are updated by fetching them from the server.

  • For Test, By calling the “FetchAndUpdateRemoteConfig” function, it will fetch the latest values present in the editor window. But in runtime, this won’t do anything as values in the Unity editor will be the same every time.

Function signature

The given function is an async task function; “await” can be used here, which ensures that the code waits until the data is fetched completely from the server.

Example

4

Custom/User properties

Properties are an important tool used to define and enrich a user identity profile, and ultimately used to define the audience segments.

Function signature

Example-1

Example-2

5

Existing user

A boolean value that’s used to identify players who have previously played the app in a version without Remote Configs (Firebase). These players must be processed differently internally because the Remote Configs SDK (Firebase) has incomplete data on them.

So at the start of the first session with Remote Configs, you need to let us know if the player has existed before that session. You can use your own persistent data to check this.

Make sure to call this only once.

Pass “true” if the user existed before.

Example

6

Set up experiments

Below are the instructions to set up AB Experiments on the dashboard so that the module can send appropriate events to Lion Analytics:

7

Generating JSON Remote Config Values

The Remote Config provides a feature which can help you generate formatted JSON for your complex data. Refer herearrow-up-right for more information.

Last updated

Was this helpful?