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

Enable or Disable Auto-Showing

By default, surveys will show automatically within 10 seconds of launching the application provided the user meets the criteria required. This automatic showing of surveys can be disabled and enabled using this API.

Surveys.autoShowingEnabled = false
IBGSurveys.autoShowingEnabled = NO;
Surveys.setAutoShowingEnabled(false);
Surveys.setAutoShowingEnabled(false);
cordova.plugins.surveys.setAutoShowingEnabled(
            true,
            function () {
                console.log('Invoke method called!');
            },
            function (error) {
                console.log('Invocation event could not be set - ' + error);
            }
        );
//iOS
IBGSurveys.AutoShowingEnabled = false;

//Android
Surveys.SetAutoShowingEnabled(false);