How to restore purchase with CocoonJS?

Get help using Construct 2

Post » Thu Feb 06, 2014 4:31 pm

Maybe this has already been answered but I've searched around a bit and haven't found much. What are the steps for restoring app purchases with CocoonJS?

Here's the test scenario:
1. User installs app
2. User purchases IAP (non-consumable, managed product).
3. They uninstall the app
4. Later they reinstall the app
5. Somehow they need to restore their IAP without buying it again

Right now I'm using the IAP object and it's seems to work great for everything except restoring purchases, but I'm not sure how to set up the events for this.

Is is the "Restore Purchases" action supposed to trigger the "Purchase completed" trigger? Because it never does for me.

This tutorial doesn't have an answer and looks like cvp has the same problem as me:
https://www.scirra.com/tutorials/645/in-app-purchase-on-google-play-android-using-cocoonjs


Any help or comments appreciated :)
B
64
S
12
G
6
Posts: 456
Reputation: 9,015

Post » Mon Mar 03, 2014 12:29 pm

Someone listen to this, please.
B
76
S
20
G
1
Posts: 108
Reputation: 5,247

Post » Mon Mar 03, 2014 12:37 pm

The last I read on the forums about this was that the purchase restore only would work providing the app wasn't uninstalled and you save the data in webstorage - ie it didn't work properly. I've seen no other news - maybe someone has more info? I am hoping that the next plugin will fix this.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,283
Reputation: 47,550

Post » Mon Mar 03, 2014 6:08 pm

Maybe put this in a bug report in the bugs forum to get some love?
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,603

Post » Mon Mar 24, 2014 10:56 pm

Did you find an answer to this? I have only seen people buy other apps as upgrades. I don't know if it can be done or not.
B
20
S
7
G
7
Posts: 88
Reputation: 4,152

Post » Wed Apr 30, 2014 7:46 pm

anyone tried restoring in app purchases with the latest open source version of the cocoonjs plugin? I'm thinking about giving it another try
B
64
S
12
G
6
Posts: 456
Reputation: 9,015

Post » Mon Jul 07, 2014 4:52 pm

would love a follow up on this too! :)
cjuliao
- Father
- Tree Hugger
- Designer, Animator & Game Developer
B
13
S
2
Posts: 56
Reputation: 1,558

Post » Tue Jul 08, 2014 3:13 pm

@cjuliao I've tried with the more recent versions of cocoonjs but it still didn't work. Actually I tried 2.0.0beta but haven't tried the latest 2.0.1 but I kind of doubt there's been any improvement
B
64
S
12
G
6
Posts: 456
Reputation: 9,015

Post » Tue Jul 08, 2014 3:58 pm

@russpuppy

thats not very promising. :(
are there other tools that are more reliable and have a better track record?

ive been looking at several 3rd party tools
and do not know enough to make an informed decision.
between these which do you think would best serve a bullet proof IAP/Leaderboard service:

http://clay.io/
http://biz.turbulenz.com/developers
http://api.shephertz.com/cloudapidocs/download.php
and of course...
https://www.ludei.com/cocoonjs/

any thoughts on which is a better path for monetization & leaderboard capabilities?
cjuliao
- Father
- Tree Hugger
- Designer, Animator & Game Developer
B
13
S
2
Posts: 56
Reputation: 1,558

Post » Tue Jul 08, 2014 4:35 pm

cocoonjs is the only one I have any experience with. It is pretty good for leaderboard support
B
64
S
12
G
6
Posts: 456
Reputation: 9,015

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests