In-App Purchase bug on iOS

Get help using Construct 2

Post » Tue Nov 18, 2014 8:37 pm

So I managed to get my In-App purchasing working on Android
But with the exact same build on IOS, it doesnt exactly work the same =(

On Android:
-When the player buys gold, the system successfully charges/receives the real-money, and adds the extra gold to the game - which is great!

On iOS:
-When the player buys gold, the system successfully charges/receives the real-money, BUT! it doesnt add the extra gold to the game after the transaction is completed..


(Note: This worked on both TestFlight and Sandbox mode, just not on LIVE)
The game has also been approved by Apple, and is currently on the App Store

https://sammustudios.files.wordpress.com/2014/11/iap_ios_only_bug1.jpg
Image
Last edited by cgsammu on Tue Nov 18, 2014 11:14 pm, edited 1 time in total.
B
17
S
6
G
1
Posts: 79
Reputation: 2,422

Post » Tue Nov 18, 2014 9:50 pm

Does anybody know if iOS In-App Purchasing process doesnt allow things like Webstorage, or Integers? Anything thats incompatible?
B
17
S
6
G
1
Posts: 79
Reputation: 2,422

Post » Wed Nov 19, 2014 1:43 am

Anybody? =/
B
17
S
6
G
1
Posts: 79
Reputation: 2,422

Post » Mon Nov 24, 2014 11:03 am

Hi cgsammu, im also currently searching for IAP tutorial for cocoonjs but so far no luck :/...
B
8
S
4
G
1
Posts: 191
Reputation: 1,873

Post » Mon Nov 24, 2014 1:35 pm

I can't see anything wrong with it at the moment. However, what I would recommend is creating a global variable called Gold and setting that to whats stored in your webstorage + IAPGold. Then use the gold variable when you do setText and store it in your webstorage.

This way you are calling the webstorage function as little as possible. This is because anything that reads or writes something external it wont be as quick as what's in memory. So it may be calling too many webstorage requests in quick succession.
ImageImageImageImageImage
B
19
S
5
G
1
Posts: 614
Reputation: 2,542

Post » Mon Nov 24, 2014 2:21 pm

Did you disable sandbox mode in the CocoonJS settings, before creating the build ?
B
12
S
5
G
1
Posts: 36
Reputation: 2,050

Post » Sun Nov 30, 2014 6:24 am

I managed to turn off sandbox mode =) im able to test the game properly without waiting for Apple's 1 week approval!
So whats happening now is....I cant buy it more than once..
on iOS, it prompts "This in-app purchase has already been bought. It will be restored for free" and I cant get pass this....
Basically, a "consumable" item is acting like a "non-consumable" (it failed to finish a transaction) I think...

Anyways, I've been trying to figure this out with Ludei, but it seems like its something they need to fix on their end =(
B
17
S
6
G
1
Posts: 79
Reputation: 2,422


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests