Set active signal groups
By calling this method setActiveSignalGroups(), the application can filter the signal groups collected in OIP Risk Management SDK. The active signal groups list is a list of groups which would be collected and is subsequently sent to the backend server for risk calculation. Setting a signal group will enable all signals in that group to be collected.
Once the active signal groups are set, the list of signal groups are saved and the same will be used until this method or setActiveSignals() method is called again.
If this method is not called at all, by default all the signals groups will be collected as the configuration set during initialization.
Note
The Device Signal group is mandatory to get visitID from the RiskEngine backend. The signal group values sent in
setActiveSignals()will override the signal groups set by this method.
final GAHSignalGroupConstants.SignalGroupEnum[] groups = new GAHSignalGroupConstants.SignalGroupEnum[]{
GAHSignalGroupConstants.SignalGroupEnum.DEVICE,
GAHSignalGroupConstants.SignalGroupEnum.NETWORK
//Similarly add other signal groups
};
//Set active signal groups to OIP Risk Management SDK
GAHCore.setActiveSignalGroups(groups);
NSArray *activeGroupSignals = @[SIGNAL_GROUP_DEVICE, SIGNAL_GROUP_SIM,
SIGNAL_GROUP_PLATFORM, SIGNAL_GROUP_LOCATION,
SIGNAL_GROUP_NETWORK, SIGNAL_GROUP_NETWORKSETTINGS];
[GAHCore setActiveSignalsGroup:activeGroupSignals];
let activeGroupSignals =[SIGNAL_GROUP_DEVICE, SIGNAL_GROUP_SIM,
SIGNAL_GROUP_PLATFORM, SIGNAL_GROUP_LOCATION,
SIGNAL_GROUP_NETWORK, SIGNAL_GROUP_NETWORKSETTINGS]
GAHCore.setActiveSignalsGroup(activeGroupSignals)