HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
These docs are for v8.1. Click to read the latest docs for v12.0.0.

Set Reshow Threshold

The reshow threshold dictates how many sessions and days must pass before a survey is shown again. Both conditions must be met in order to trigger showing the survey again.

This method takes two integers, the first determining the number of sessions, while the second determines the number of days.

Surveys.setThresholdForReshowingSurveyAfterDismiss(3, daysCount: 5)
[IBGSurveys setThresholdForReshowingSurveyAfterDismiss:3 daysCount:5];
//Set how many sessions and days are required to show the survey again
Surveys.setThresholdForReshowingSurveyAfterDismiss(int sessionsCount, int daysCount);
Surveys.setThresholdForReshowingSurveyAfterDismiss(5,10);
cordova.plugins.surveys.setThresholdForReshowingSurveyAfterDismiss(
            5,
            10,
            function () {
                console.log('Reshowing survey threshold set.');
            },
            function (error) {
                console.log('Reshowing survey threshold could not be set - ' + error);
            }
        );
//iOS
IBGSurveys.SetThresholdForReshowingSurveyAfterDismiss(3, 5);

//Android
Surveys.SetThresholdForReshowingSurveyAfterDismiss(3, 5);