How do I Restore Purchases after reinstalling app?

Get help using Construct 2

Post » Tue Dec 01, 2015 5:32 pm

I'm trying to find a way for user to restore purchases they previously made before uninstalling app when they have reinstalled the app.

I've got the IAP working but need help with restoring purchases if user uninstalls and then reinstalls app.

I've seen some topics on here regarding this but most of them are with CocoonJS, i'm using Cranberry's IAP plugin and Intel XDK.

Image

This is what i've tried but hasn't worked. I initially did - On request store listing suceeded - Restore purchases but that didn't work so i tried the method shown in the picture.

I would appricate help on this as i'm struggling to get it to work.

Thanks
B
5
S
2
Posts: 124
Reputation: 872

Post » Thu Dec 03, 2015 10:08 am

Hello,

You have to use the Restore Purchases action after "Store listing suceeded".
After that you will have to make another event.

On Restore Purchases sucess
User has product "ads"

Remove ads. etc.etc.



EDIT:

I see that you have already tried it, but it's actually the only way to make it work.
This is a screenshot of our code that works.

Image
B
14
S
5
G
1
Posts: 32
Reputation: 1,038

Post » Thu Dec 03, 2015 4:16 pm

@Kribzy

Thanks, that seems to have helped me out. Even though i did Restore purchases action, i didn't do an event for On Restore Purchases success. Now that i've done that, it seems to have worked :)

Thanks again
B
5
S
2
Posts: 124
Reputation: 872

Post » Thu Dec 03, 2015 6:40 pm

tomhaiger wrote:@Kribzy

Thanks, that seems to have helped me out. Even though i did Restore purchases action, i didn't do an event for On Restore Purchases success. Now that i've done that, it seems to have worked :)

Thanks again


Glad it worked out :)
B
14
S
5
G
1
Posts: 32
Reputation: 1,038


Return to How do I....?

Who is online

Users browsing this forum: ashishv, Janaina, nitin4july, shushpo and 3 guests