How to add cordova AppRate plugin to Intel XDK? -


i have added plugin cannot setup config file(intelxdk.config.additions.xml).

if add code config:

var customlocale = {}  customlocale.title = "rate %@"; customlocale.message = "if enjoy using %@, mind taking moment rate it? won’t take more minute. support!"; customlocale.cancelbuttonlabel = "no, thanks"; customlocale.laterbuttonlabel = "remind me later"; customlocale.ratebuttonlabel = "rate now";  apprate.preferences.openstoreinapp = true; apprate.preferences.storeappurl.android = 'market://details?id=com.site.test'; apprate.preferences.customlocale = customlocale; apprate.preferences.displayappname = 'my custom app title'; apprate.preferences.usesuntilprompt = 1; apprate.preferences.promptagainforeachnewversion = false; apprate.promptforrating(true); 

nothing happing when test app on real device.

first off, go project tab. go in plugins-> third party plugins. click on plugin web.

for name, write apprate or whant. plugin id, write org.pushandplay.cordova.apprate , check "plugin located in apache cordova plugins registry".

be warned third plugins can tested on build tab. after should work.

p.s, there nothing add in additions.xml file make work. put code in function call , should work charm


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -