HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

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;
Surveys.setEnabled(false);