Failed to Build Project Using IAP as Stated in Tutorial

Bugs will be moved here once resolved.

Post » Tue Jul 05, 2016 12:48 pm

Problem Description
I aim to allow users to unlock features in my app via in-app-purchasing. The problem arises when I use Intel XDK to build the project. I get the following build log:
  • Building a Cordova 5.4.1 application.
  • Using platform cordova-android 5.0.0.
  • The application name is "TestIAP"
  • The package name is "com.jason.testiap"
  • Preference android-signed set to true. Application will be signed.
  • Using Crosswalk Embedded 16
  • Plugin "com.smartmobilesoftware.androidinappbilling" (3.0.2) installed.
  • Plugin "cordova-plugin-whitelist" (1.2.1) installed.
  • Error: Plugin cc.fovea.cordova.purchase failed to install.
  • Error: Plugin com.mcm.plugins.androidinappbilling failed to install.
  • Plugin "cordova-plugin-crosswalk-webview" (1.5.0) installed.

I followed this tutorial ... ge-6#h2a23 in particular the section on 'Our IAPs in Intel XDK', where I use as the Git repo.

Attach a Capx ... _test.capx

Description of Capx
You have to click on Buy and the text will change from Locked = 1 to Locked = 0. IAP is used to ensure the app is purchased to get to a Locked value of 0 (false).

Steps to Reproduce Bug
  • Open up Intel XDK
  • Set up the CORDOVA HYBRID MOBILE APP SETTINGS for Android; Plugin Management, and Build Settings.
  • Set up a Google Play Developer Console application and obtain the IN-APP BILLING Key to use in Intel XDK as mentioned in the tutorial.
  • Build the project and you will get the build errors.

Observed Result
Build Errors as mentioned in the Problem Description.

Expected Result
The build log to be error free and the Build to successful.

Affected Browsers

Operating System and Service Pack
  • Intel XDK is running on Mac OSX Yosemite.
  • Construct 2 running on Windows 7 64 bit Home Premium. version 6.1 service pack 1.

Construct 2 Version ID
Release 227 (64-Bit)
Posts: 18
Reputation: 619

Post » Mon Oct 03, 2016 7:58 pm

It's extremely difficult to get a clear, centralized answer from anybody on this. I grabbed cranberrygame's Construct 2 package that includes his IAP plugin, and that one seems to give me issues just as you've described above.

What are we missing? @cranberrygame ... ayment-iap
Posts: 37
Reputation: 1,076

Post » Fri Oct 07, 2016 1:08 pm


Tested ... ayment-iap
Cordova build success (test xdk and

Sang Ki Kwon
Construct2 Cordova Plugins (currently 87 plugins): ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): ... -capx-3088

Home page:
Posts: 782
Reputation: 46,635

Post » Thu Feb 16, 2017 6:33 am

The Cranberry IAP plugin doesn't work. If I have a button that does Request Store listing and purchase product, or a button that request listing and restore purchase, both crash the game with touched.

I tried with on start of layout add product and request store listing. with a button that all it does it purchase product...and clicking it did nothing. I did on start of layout Add product request store listing. then the button that does purchase product, nothing else. clicking the button did nothing.
Posts: 315
Reputation: 3,960

Post » Mon Feb 20, 2017 4:20 pm

@Phoenixbowman - this issue is several months old and appears to relate to a build error with the Intel XDK. I think this must be resolved as per cranberrygame's message and the fact there have been no subsequent reports (plus this type of issue is up to Intel to fix anyway). If you have a different issue not related to a build error, please file a new report following all the guidelines.
Scirra Founder
Posts: 25,203
Reputation: 200,347

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests