android - Access In App Purchase Plugin in Ionic 2 -


i making small ionic 2 app learning framework , want test in app purchase plugin (cordova plugin add cordova-plugin-inapppurchase).

my plugin list

$ ionic plugins list cordova-plugin-console 1.0.3 "console" cordova-plugin-device 1.1.2 "device" cordova-plugin-inapppurchase 1.0.0 "in app purchase" cordova-plugin-splashscreen 3.2.2 "splashscreen" cordova-plugin-statusbar 2.1.3 "statusbar" cordova-plugin-whitelist 1.2.2 "whitelist" ionic-plugin-keyboard 2.2.1 "keyboard" 

so seams plugin installed correctly.

i've read access cordova plugins via

cordova.plugins.myplugin.afunction() 

in controller coded following print accessible plugins:

this.platform.ready().then(() => {     console.log(cordova.plugins);  }); 

when deploy app on android device holds keyboard-function. have idea how use , access in app purchase plugin? thank you.

i have not tried came across may helpful yesterday.

you must create manifest.json in project's www folder android billing key:


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -