Implement Survey Monkey Api for Android (iOS SOON!!!).
To install from the command line:
cordova plugin add cordova-survey-monkey
It is also possible to install via repo url directly
cordova plugin add https://github.com/maugonsal/cordova-survey-monkey
//HASH OF THE SURVEY
var hash_survey = "XGF123";
//SEND CUSTOM VARIABLE AS JSON STRING
var json_vars = {email:'[email protected]'};
//SHOW SURVEY
cordova.plugins.SurveyMonkey.showSurvey(hash_survey,JSON.stringify(json_vars),function(answers){
console.log(answers)
},function(error){
console.log(error)
}
);