in-app purchase issue (iOS + cocoonjs)

Discussion and feedback on Construct 2

Post » Tue Aug 19, 2014 12:01 pm

@mollaq

"on purchase completed" is fired after somebody has bought your app. At this point you may want to store what they bought in game i.e. I have an upgrade to full game IAP. This means I store a bool so the game knows to use the full version features.

"Is product purchased" is check that you can do to find out if the player has ever bought your IAP. So an example where you want to use this is to make sure the people who installed, bought the IAP, uninstalled, then re-install would still recognize the IAP. HOWEVER, this has been reported to be broken as well => https://github.com/ludei/Construct-2-plugin/issues/16
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Tue Aug 19, 2014 12:20 pm

I honestly dont know how they simply don't test their own product.

The responses are ridiculous "we can only test in sandbox mode".. really? They can't publish an actual demo app on the App Store with sandbox disabled to test a real IAP transaction??
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Tue Aug 19, 2014 12:33 pm

I'm not defending them or anything, but what they are saying is it is complicated to test because they literally have to publish the app to Apple for them to tell them there is an issue. That is on average a 6 day turn around at the moment. However, the lack of communication about what they are doing to investigate the issue is what I find the most frustrating.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Tue Aug 19, 2014 12:59 pm

Thank's @TheWyrm now I Know the difference.
Infact I does a try, changing a little bit of my construct2 event, and I compiled my game in sandbox mode enabled, sending to Ludei cloud compiler and test my game with xcode 6 beta 5 on my real device.....
all IAP works perfectly also restore purchase button work great....

but the most frustrating for me is there isn't control when I disable the sandbox mode and send to the Apple for approval....
they reject puntually the game with the generic answer "the IAP don't work".....but what??? how can I try to correct an issue if I can't try to reproduce the error and I can't try to simulate a real transaction with my game???
They say (Apple team) that if IAP works in sandbox environment then it works also in real purchase...... but in reality it is not so!!!!
and then what should we do?
B
6
S
1
Posts: 62
Reputation: 578

Post » Tue Aug 19, 2014 1:49 pm

1 News:
KLAUS answer to my question on LUDEI support portal, He is a ludei's user that few months ago had the same problem and He solved that IAP problem.

here's the answer:
""As I wrote before: do not use managed mode! Try it simple. And store any verified purchase by yourself.

CocoonJS.Store.onProductPurchaseVerificationRequestReceived.addEventListener(function (productId, data) {

// only use productId, ignore data
// will be called during purchase and during restore
});

You will not need onProductPurchaseCompleted, since it is only called in managed mode.

maybe that helps""

if you want to get in the discussion follow this link:
http://support.ludei.com/hc/communities ... cale=en-us

Maybe He can help us.
B
6
S
1
Posts: 62
Reputation: 578

Post » Tue Aug 19, 2014 3:48 pm

It doesn't look like the same problem to me. He reports his issue is on Android not apple. As I said I have it working perfectly for both Google Play and Amazon.

However, if we could get unmanaged working it would at least be an option. So what is KLAUS suggesting? changing the cocoonjs plugin?
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Tue Aug 19, 2014 4:41 pm

"The setting of Managed vs. unmanaged means that ludeis cloud thing will take care of some of it for you.
Warning if you set it to unmanaged the Purchase completed event will not be triggered." ~https://www.scirra.com/tutorials/645/in-app-purchase-on-google-play-android-using-cocoonjs/page-3

So basically by setting it as unmanaged you risk the possibility that people could buy your app without actually paying for it. Unless you build your own authentication processes which is probably what clause did in something other than C2.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Tue Aug 19, 2014 11:53 pm

I've never had problems with IAPs on Android. There are a few occasions where Ludei's servers were briefly down, when Ads did not serve and IAPs didn't register, but otherwise its ok.

Apple has been reviewing my app for over 2 weeks now. No response yet.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Wed Aug 20, 2014 10:55 am

@Ludei Any news?
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Wed Aug 20, 2014 12:49 pm

Not had any reply from Ludei about any kind of update. Just trying now through the social networks. Perhaps someone has gone on holiday?
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: mihirolover and 11 guests