IAP - Restore purchases doesnt work (Game already published)

Get help using Construct 2

Post » Sat Aug 13, 2016 2:32 am

I had very little time for testing and the game was published.

After purchase the item "remove ads", the ads hide, but at restart the game, still showing.

About 27 people have bought it and are very confused.


>>>> PURCHASE "REMOVE ADS" ITEM
Image

>>>> RESTORE PURCHASES (Event sheet in every Layout)

Image

I just need that always on game start, check if the "remove ads" item is already purchased, so, show ads or not.

I really appreciate your help.
B
33
S
11
G
2
Posts: 45
Reputation: 3,156

Post » Sat Aug 13, 2016 11:12 am

Did you add the product IDs on start of layout? Do you have any purchase success and purchase failed checks? Test it is all working in test mode in C2 then you can work out if it is a problem after publishing or with third party process like XDK.
Last edited by plinkie on Tue Aug 16, 2016 7:26 am, edited 1 time in total.
B
46
S
16
G
79
Posts: 2,170
Reputation: 46,857

Post » Mon Aug 15, 2016 10:18 pm

You need to use the 'fetch products from store' option. Once they are fetched then you can check if purchased

The other way is - on initial purchase set up a local variable to store the fact that they have purchased it. This would eliminate the need to the store each time

Regards
B
6
S
1
Posts: 32
Reputation: 476

Post » Tue Aug 16, 2016 9:22 am

As long as you use "Has product ID" alone you don't need to restore purchase.

If the user has bought a product "Has product" will either be positive or negative.
Restoring purchase is useless...

https://www.scirra.com/tutorials/4848/how-to-get-admob-official-plugin-working-on-android-crosswalk
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,795


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, dop2000 and 37 guests