Multiple Measures

You can define multiple measures in your foresee_configuration.json file with each measure having different triggering criteria. When you make a call to [ForeSeeCxMeasure checkIfEligibleForSurvey], each measure is checked in turn.

If the user of your app is eligible for more than one measure defined in your JSON file, they are only invited to the first measure defined in the measures collection. Example: The JSON file is defined like so:

{
    "clientId": "cid",
    "measures": [
        {
            "surveyId": "sid1",
            "launchCount": 3
        },
        {
            "surveyId": "sid2",
            "launchCount": 3
        }
    ]
}

A user can be eligible to be invited to both since the two measures have the exact same triggering criteria. In this case, the user is only invited to the first measure, “sid1”.