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 Surveys

If you would like to disable the surveys from showing in general, including manual targeting surveys, you can do so using this API.

❗️

Disabling Surveys

This API completely disables surveys, meaning surveys will not be shown regardless of the code called.

Surveys.enabled = false;
[IBGSurveys setEnabled:NO];
// Enable
Surveys.setState(Feature.State.ENABLED);
// Disable
Surveys.setState(Feature.State.DISABLED);
Surveys.setEnabled(false);
cordova.plugins.surveys.setEnabled(true, success, error);
Surveys.Enabled = false;