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

Show Available Survey

Use this method to automatically show any survey this user can see at the moment, provided the user meets the surveys criteria.

Surveys.showSurveyIfAvailable()
[IBGSurveys showSurveyIfAvailable];
Surveys.showSurveyIfAvailable()
Surveys.showSurveyIfAvailable();
cordova.plugins.surveys.showSurveyIfAvailable(
  					function () {
                console.log('Invoke method called!');
            },
            function (error) {
                console.log('Invocation event could not be set - ' + error);
            }
				);
//iOS
IBGSurveys.ShowSurveyIfAvailable();

//Android
Surveys.ShowSurveyIfAvailable();