Skip to main content
Version: Next

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 P101XP class:

+ (NSString *)ABTestGetString:(NSString *)key defaultValue:(NSString *)defaultValue;
+ (NSInteger)ABTestGetInteger:(NSString *)key defaultValue:(NSInteger)defaultValue;
+ (NSNumber *)ABTestGetNumber:(NSString *)key defaultValue:(NSNumber *)defaultValue;
+ (BOOL)ABTestGetBool:(NSString *)key defaultValue:(BOOL)defaultValue;

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