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 https://www.scirra.com/tutorials/4848/h ... ge-6#h2a23 in particular the section on 'Our IAPs in Intel XDK', where I use https://github.com/poiuytrez/AndroidInAppBilling as the Git repo.

Attach a Capx
https://dl.dropboxusercontent.com/u/527 ... _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
N/A

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)
B
9
S
2
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

https://github.com/cranberrygame/cordov ... ayment-iap
B
14
S
5
Posts: 37
Reputation: 1,026

Post » Fri Oct 07, 2016 1:08 pm

@jbar6381
@actuallybrown

Hi,
Tested https://github.com/cranberrygame/cordov ... ayment-iap
Cordova build success (test xdk and cocoon.io)

Thanks
Sang Ki Kwon
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

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.
B
20
S
7
G
3
Posts: 302
Reputation: 3,634

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
B
397
S
236
G
88
Posts: 24,408
Reputation: 194,506


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests