IAP object (official and Cranberry)

Discussion and feedback on Construct 2

Post » Tue Mar 24, 2015 10:02 pm

@SamRock wrote as a comment on the tutorial https://www.scirra.com/tutorials/1376/f ... iap-plugin :

Just hold on for a while. Looks like Official IAP doesnt "Consume" .. Consumable products.
I am temporarily switching back to cranberriesgames' IAP plugin.


Is this verified and still the case?
B
25
S
6
G
7
Posts: 676
Reputation: 5,562

Post » Tue Mar 24, 2015 11:05 pm

Yes Unfortunately it is still the case. I logged a bug report, asked @Ashley about it... but he says.. its a "feature" to be requested not a bug :'(


Here is the bug report I filed:
viewtopic.php?f=152&t=124682
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,189

Post » Wed Mar 25, 2015 9:05 am

Thanks, I have read it.
Fortunately this is a broad topic about both IAP's, so I can ask you about the Cranberry-IAP plugin expression productprice: does showing productprices of consumable items (coins, in my case) work for you?
B
25
S
6
G
7
Posts: 676
Reputation: 5,562

Post » Wed Mar 25, 2015 11:59 am

Yup it works perfectly.

Make your you are calling
"Add Prodduct IDs" followed by
"Request Store listing" in the "On Layout Start " event

Then use the "On Store Listing Success" event to access the price of each item.

For eg: F
To access price for item called "coinpack":
txtPrice.text = PhonegapIAP.ProductPrice("coinpack")
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
57
S
11
G
2
Posts: 412
Reputation: 5,189

Post » Wed Mar 25, 2015 1:08 pm

Thanks, I will try this!
(I am using a different order: first request store listing, then add product IDs)
B
25
S
6
G
7
Posts: 676
Reputation: 5,562


Return to Construct 2 General

Who is online

Users browsing this forum: Celeb, tumira and 3 guests