Page 1 of 2

How to restore purchase with CocoonJS?

PostPosted: Thu Feb 06, 2014 4:31 pm
by russpuppy
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 :)

Re: How to restore purchase with CocoonJS?

PostPosted: Mon Mar 03, 2014 12:29 pm
by Renfd
Someone listen to this, please.

Re: How to restore purchase with CocoonJS?

PostPosted: Mon Mar 03, 2014 12:37 pm
by Colludium
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.

Re: How to restore purchase with CocoonJS?

PostPosted: Mon Mar 03, 2014 6:08 pm
by BluePhaze
Maybe put this in a bug report in the bugs forum to get some love?

Re: How to restore purchase with CocoonJS?

PostPosted: Mon Mar 24, 2014 10:56 pm
by TheDoctor
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.

Re: How to restore purchase with CocoonJS?

PostPosted: Wed Apr 30, 2014 7:46 pm
by russpuppy
anyone tried restoring in app purchases with the latest open source version of the cocoonjs plugin? I'm thinking about giving it another try

Re: How to restore purchase with CocoonJS?

PostPosted: Mon Jul 07, 2014 4:52 pm
by cjuliao
would love a follow up on this too! :)

Re: How to restore purchase with CocoonJS?

PostPosted: Tue Jul 08, 2014 3:13 pm
by russpuppy
@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

Re: How to restore purchase with CocoonJS?

PostPosted: Tue Jul 08, 2014 3:58 pm
by cjuliao
@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?

Re: How to restore purchase with CocoonJS?

PostPosted: Tue Jul 08, 2014 4:35 pm
by russpuppy
cocoonjs is the only one I have any experience with. It is pretty good for leaderboard support