• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

iOS [Solved] I can not test IAP on iOS.

T

turra

Guest
If you leave the phone plugged in and run the game from xcode so you can see the debug log, does it show anything useful that might give a hint as to what is wrong?

It's been a little while since I dealt with this but have your IAPs been approved by apple? I don't know about the state of the rest of your game, so maybe you'd need to do more work first, but you need to submit the game for review with those IAPs present for them to be approved, then I think testing them would be a lot easier (or maybe its required for it to be possible, I am not 100% sure). The game doesn't need to actually be finished, or anything like that.
 
If you leave the phone plugged in and run the game from xcode so you can see the debug log, does it show anything useful that might give a hint as to what is wrong?

It's been a little while since I dealt with this but have your IAPs been approved by apple? I don't know about the state of the rest of your game, so maybe you'd need to do more work first, but you need to submit the game for review with those IAPs present for them to be approved, then I think testing them would be a lot easier (or maybe its required for it to be possible, I am not 100% sure). The game doesn't need to actually be finished, or anything like that.
Hi! Sorry for the delay, I was away from my Mac for testing.
Follows the debug of the store call to the purchase test. Apparently he does not recognize my products. But I'm using exactly the same ID I wrote in app store connect.

Code:
2019-01-30 15:09:22.497898-0300 _100NHAS[3125:1893153] INFO: iap_activate(productList) call

2019-01-30 15:09:22.507926-0300 _100NHAS[3125:1893153] Network is available for purchasing

2019-01-30 15:09:23.776875-0300 _100NHAS[3125:1893153] productsRequest callback handling

2019-01-30 15:09:23.777033-0300 _100NHAS[3125:1893153] Invalid product id: x_tentativas

2019-01-30 15:09:23.777083-0300 _100NHAS[3125:1893153] Invalid product id: 150_tentativas

2019-01-30 15:09:23.777121-0300 _100NHAS[3125:1893153] Invalid product id: 60_tentativas_ios

2019-01-30 15:09:23.790120-0300 _100NHAS[3125:1893153] STORE LOADED

2019-01-30 15:09:26.184928-0300 _100NHAS[3125:1893153] Texture #3 1024,1024

2019-01-30 15:09:37.168276-0300 _100NHAS[3125:1893153] Pause event has been registered for this frame

2019-01-30 15:09:37.253049-0300 _100NHAS[3125:1893153] Pause event has been unregistered

2019-01-30 15:09:37.719801-0300 _100NHAS[3125:1893153] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

2019-01-30 15:09:37.750458-0300 _100NHAS[3125:1893153] [VK] Keyboard rect updated. Origin: 0.0 451.0. Size: 375.0 216.0.

2019-01-30 15:09:37.757278-0300 _100NHAS[3125:1893153] [VK] Keyboard rect updated. Origin: 0.0 451.0. Size: 375.0 216.0.

2019-01-30 15:10:08.427275-0300 _100NHAS[3125:1893153] [VK] Keyboard rect updated. Origin: 0.0 667.0. Size: 375.0 0.0.

2019-01-30 15:10:08.443437-0300 _100NHAS[3125:1893153] [VK] Keyboard rect updated. Origin: 0.0 667.0. Size: 375.0 0.0.

2019-01-30 15:10:08.753163-0300 _100NHAS[3125:1893153] Pause event has been registered for this frame

2019-01-30 15:10:08.801753-0300 _100NHAS[3125:1893153] Pause event has been unregistered

2019-01-30 15:10:16.269413-0300 _100NHAS[3125:1893153] Transaction failed: Não pôde conectar com a iTunes Store, error code 0

2019-01-30 15:10:16.303930-0300 _100NHAS[3125:1893153] PRODCT PURCHASED - 0

2019-01-30 15:10:16.304032-0300 _100NHAS[3125:1893153] Product - x_tentativas

2019-01-30 15:10:16.304076-0300 _100NHAS[3125:1893153] Order -

2019-01-30 15:10:16.304116-0300 _100NHAS[3125:1893153] Token -

2019-01-30 15:10:16.304154-0300 _100NHAS[3125:1893153] Payload -

2019-01-30 15:10:16.304192-0300 _100NHAS[3125:1893153] Receipt -

2019-01-30 15:10:16.304231-0300 _100NHAS[3125:1893153] Response - 0

2019-01-30 15:10:16.304268-0300 _100NHAS[3125:1893153] iap_failed

2019-01-30 15:10:27.117424-0300 _100NHAS[3125:1893153] Pause event has been registered for this frame

2019-01-30 15:10:27.185832-0300 _100NHAS[3125:1893153] Pause event has been unregistered
 
Top