Software Archive
Read-only legacy content
17061 Discussions

IAP example plugin not working on Android

Pablo_Farias_Navarro
206 Views

The plugin used in the template "Hello In-App Purchase" is meant to work on both iOS and Android, but I've tried everything and can't make it work on Android.

According to the plugin repo, when it comes to Android the installation via Cordova command line would contain a "BILLING" variable where you enter the Playstore billing key for the app, but on the XDK we can't execute this when importing the plugin.

I tried adding the following to indelxdk.config.additions.xml to find a way to enter this billing variable, but still didn't work:

<!-- -Android --><intelxdk:plugin intelxdk:name="InAppPurchase" intelxdk:value="https://github.com/j3k0/cordova-plugin-purchase.git#v3.9.0-beta.4"/>

<!-- +Android --><intelxdk:plugin intelxdk:name="InAppPurchase" intelxdk:value="https://github.com/j3k0/cordova-plugin-purchase.git#v3.9.0-beta.4">
  <intelxdk:param intelxdk:name="BILLING_KEY" intelxdk:value="MY-SECRET-BILLING-KEY-HERE" />
</intelxdk:plugin>

 

Are there plans to make this Hello IAP demo work on Android too, or to provide a Hello World In-App Billing template? The only tutorial I've found on Google In-App Billing in the XDK uses a different plugin, and I'm trying to avoid using two different plugins if there is already a cross-platform one.

0 Kudos
0 Replies
Reply