CocoonJS IAP Checklist

Discussion and feedback on Construct 2

Post » Tue Jul 30, 2013 5:26 pm

@cvp

do you know how to set it up in itunes and that what part you stuck on Uk4dee2013-07-30 17:27:37
B
5
Posts: 36
Reputation: 845

Post » Wed Jul 31, 2013 8:58 am

@Uk4dee thx for the post (to Nofish). Helped me alot on the way.

Another question though. Whenever you purchase a product you set the global variable "premium" to 1.

How do you check when the app starts up a second time, if the product is already purchased? Do you persist the value of the premium variable?

....nevermind found out you can check if it has been purchased.cvp2013-07-31 16:06:07
B
19
S
6
G
4
Posts: 342
Reputation: 4,392

Post » Wed Jul 31, 2013 12:27 pm

@Uk4dee

Thanks for reply. Uk4dee!


I found sould set the stroe mode to Managed then can received the PURCHASES data.

Oh no! I only success one time. Still can't store the purchased dataNofish2013-07-31 14:20:11
B
9
S
3
G
2
Posts: 54
Reputation: 2,468

Post » Wed Jul 31, 2013 1:42 pm

I'm tearing my hair out here :/
Created a test based on the checklist here, and tried both Android and Apple. It's taken me days of experimenting and reading. Managed to get a purchase to happen, but the product purchased check does not work, which makes it unusable.
I'm stuck telling my client I cannot do in-app purchases, which is really embarrassing.
Is there anything I can do to work around the problem? Via plug-in?

Ashley, what is the status with this? - it's clearly an important issue for many of us (the number of views on this thread are huge :).

Cheers, Anthony.
B
5
Posts: 18
Reputation: 821

Post » Wed Jul 31, 2013 8:30 pm

i can confirm that in app purchases are working on ios i have apps in the app store that are live and working now
B
5
Posts: 36
Reputation: 845

Post » Wed Jul 31, 2013 8:35 pm

@cvp sorry i forgot to add this in to the pic what i would do is to


on purchase successful - set premium to 1
                         then
                         set a web storage value example (premium)



then on the first screen of the app

on start of layout if web storage value exists (premium) set premium to 1


this way you wont have to enter your user and pass all the time
B
5
Posts: 36
Reputation: 845

Post » Wed Jul 31, 2013 8:37 pm

@ nofish i dont understand what you are trying to store or what youa re trying to do check my last post about webstorage that may help you
B
5
Posts: 36
Reputation: 845

Post » Thu Aug 01, 2013 1:19 am

I stuck on 'restore purchases' and 'on purchase complete' not work for me although the puchases can success.
And I only test the Non-Consumable in sandbox.When purchase a second time.It will tip you alredy purchased then purchase failed. And 'restore purchase' seem not restore again.
I just want test if I uninstall the game (the webstorage will be delete).And reinstall game to restore purchase data.(purchase again will failed).
B
9
S
3
G
2
Posts: 54
Reputation: 2,468

Post » Thu Aug 01, 2013 10:59 pm

The only thing I can say is email me the .capx n ill have a look for you my emai is uk4 dee@googlemail.com


B
5
Posts: 36
Reputation: 845

Post » Sat Aug 10, 2013 1:56 am

Hi All, can someone plz confirm that IAPs work in the latest version of CJS and C2? I've followed all the instructions, but my purchases seem to constantly return failures.
B
34
S
8
G
3
Posts: 328
Reputation: 7,692

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: radbrothers and 8 guests