Skip to main content
Version: 1.49.x

A/B Testing

Configure

101XP SDK uses Firebase for A/B testing. Respectively, Firebase needs to be configured. Check that you have google-services.json file in the root directory of your project. If you need that file, ask your manager.

Usage

To get the required parameter for A/B testing, use these methods of the Platform101XP class:

long testABGetLong(String key, long defaultValue);
String testABGetString(String key, String defaultValue);
double testABGetDouble(String key, double defaultValue);
boolean testABGetBoolean(String key, boolean defaultValue);

If Firebase doesn't have the required parameter the default value is returned.