UserVoice Plugin

Hello,

here is very simple cordova/phonegap plugin to use UserVoice API. Lets try it.Just it and try it.

Installations:

Note: "{myApp}" denote the name of your application

  1. Copy "UserVoice" folder to your app's {myApp}/Plugins/ folder
  2. Now drag the "UserVoice" ({myApp}/Plugins/UserVoice) folder to xcode window and drop on Plugins folder, make sure you have checked "Create group for any added folders" new added folder "UserVoice" icon must be yellow, not blue.
  3. Now copy the js file from "UserVoice" plugin folder to your "www" folder and link it under html file as bellow (add a script reference to UserVoice.js)
    <script type="text/javascript" src = "UserVoice.js"></script>

Uses:

UserVoice cfg is a javascript var as bellow

Configure the UserVoice window options

var cfg = {
	task:'launchFeedback',//[launchFeedback|contactUs|viewForum|postIdea]
	
	site:'demo.uservoice.com',
	key:'pZJocTBPbg5FN4bAwczDLQ',
	secret:'Q7UKcxRYLlSJN4CxegUYI6t0uprdsSAGthRIDvYmI',
	
	topicId:0,//[0|453|333 (any valid topicId as interger)]
	showContactUs:1,//[0|1], Show/hide Contact us button
	showForum:1,//[0|1] Show/hide Forum button
	showPostIdea:1,//[0|1] Show/hide Post an idea button
	showKnowledgeBase:1//[0|1] Show/hide KnowledgeBase items
};

Now show the uservoice window

showUserVoice(cfg);      Or   window.plugins.uservoice.launch(cfg);


You have to login to Download/Buy extensions.
Create an account

Or