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

Manually Show Survey

If you created a survey on the dashboard that you use to manually target users, you'll be provided with a token. You can pass this token to the show survey API to manually show it at anytime.

Surveys.showSurvey(withToken: "TOKEN")
[IBGSurveys showSurveyWithToken:@"TOKEN"];
Surveys.showSurvey("TOKEN");
Surveys.showSurvey("TOKEN");
cordova.plugins.surveys.showSurveyWithToken(
    'SURVEY_TOKEN',
    function () {
      console.log('Survey with token shown.');
    },
    function (error) {
      console.log('Survey with token could not get shown - ' + error);
    }
  };
//iOS
IBGSurveys.ShowSurveyWithToken("TOKEN");

//Android
Surveys.ShowSurvey("TOKEN");