HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

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");
Surveys.showSurvey("TOKEN");