Set active signal groups
By calling the setActiveSignalGroups() method, the application can filter the signal groups collected in the Risk Management SDK. The active signal groups list is a list of groups that are collected and subsequently sent to the back-end server for risk calculation. Setting a signal group enables all signals in that group to be collected.
When the active signal groups are set, the list of signal groups are saved and used until this method or the setActiveSignals() method is called again.
If this method is not called at all, by default, all the signals groups are collected because the configuration is set during initialization.
The device signal group is mandatory to get the visitID from the Risk Engine back end. The signal group values sent in setActiveSignals() override the signal groups set by this method.
Android
final GAHSignalGroupConstants.SignalGroupEnum[] groups = new GAHSignalGroupConstants.SignalGroupEnum[]{
GAHSignalGroupConstants.SignalGroupEnum.DEVICE,
GAHSignalGroupConstants.SignalGroupEnum.NETWORK
//Similarly add other signal groups
};
//Set active signal groups to Risk Management SDK
GAHCore.setActiveSignalGroups(groups);
iOS
NSArray *activeGroupSignals = @[SIGNAL_GROUP_DEVICE, SIGNAL_GROUP_SIM,
SIGNAL_GROUP_PLATFORM, SIGNAL_GROUP_LOCATION,
SIGNAL_GROUP_NETWORK, SIGNAL_GROUP_NETWORKSETTINGS];
[GAHCore setActiveSignalsGroup:activeGroupSignals];
Swift
let activeGroupSignals =[SIGNAL_GROUP_DEVICE, SIGNAL_GROUP_SIM,
SIGNAL_GROUP_PLATFORM, SIGNAL_GROUP_LOCATION,
SIGNAL_GROUP_NETWORK, SIGNAL_GROUP_NETWORKSETTINGS]
GAHCore.setActiveSignalsGroup(activeGroupSignals)