IAP with PhoneGap?

Get help using Construct 2

Post » Sun Nov 19, 2017 4:11 pm

Anyone know how to get this working?

I've looked at some tutorials, but they all appear to be outdated now, mainly referring to the Intel XDK which is no longer being maintained.

When I export my app and upload it to PhoneGap, I get an error message for my android upload telling me I'm missing a "BILLING_KEY". Now some tutorials tell me that I get my billing key after I upload my app, which is odd seeing as I can't even get a build I can use.

Another thread I found had the same issue, but they said "Oh, I switched over to C3 and it works now!". What about those of us that are still using Construct 2?

Other people have sent me to sites such as GITHUB, where all I see is a wall of text with no explanation as to what I'm meant to do with it. One recently was in Italian, which just confused me even more.

I can build the app with no issues so long as I don't use the IAP plugin, but as soon as I add that I get errors.

Am I to assume that Construct 2's IAP plugin is just broken, seeing as it apparently works without issue in Construct 3?
B
98
S
20
G
8
Posts: 1,066
Reputation: 12,758

Post » Mon Jan 29, 2018 4:42 pm

How come no one will answer this question? Ugh
B
13
S
4
G
3
Posts: 120
Reputation: 3,080

Post » Tue Jan 30, 2018 4:45 pm

Message: RozekEnhance can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Enhance has recently released IAP support.
For more information, follow the link : https://goo.gl/CxUoRq
B
3
S
1
Posts: 56
Reputation: 429

Post » Tue Jan 30, 2018 7:45 pm

Thank you Rozek. using Cocoon and Enhanced I was finally able to monetize my C2 apps.

edit: cant publish to google play. Enhanced is bs and doesn't work with c2 without command line stuff
B
13
S
4
G
3
Posts: 120
Reputation: 3,080

Post » Thu Feb 08, 2018 1:41 pm

Khaz, any update qwith this I'm the same situation.

I get "missing BILLING_KEY" when creating the APK with Phonegap Build. There is nowhere for me to add the key.
B
6
Posts: 11
Reputation: 292

Post » Thu Feb 08, 2018 2:55 pm

I think I've found the solution. CS2 + Phonegap Build for Android:

Export the project to Cordova.

Then in the config.xml remove this line:

<plugin name="com.mcm.plugins.androidinappbilling">

...Instead add this:

<plugin name="cc.fovea.cordova.purchase" spec="~7.1.0">
<variable name="BILLING_KEY" value="YOURBILLINGKEYHERE" />
</plugin>

...you don't need to bundle that plugin with your zip file for Phonegap Build as it already uses it.
The problem seemed to be that Phonegap Build no longer supports the com.mcm.plugins.androidinappbilling plugin.

Seems to work for me. Let me know how you get on.
B
6
Posts: 11
Reputation: 292


Return to How do I....?

Who is online

Users browsing this forum: plinkie, PurifiedWater and 12 guests