I'm currently setting up IAPs on iOS and want to be sure I'm not doing any serious mistakes. I've borrowed code from the iaptest which came with Monkey and standard purchases seem to work fine.
I've also tried to simulate special cases, like this: player taps a button to make a purchase and right after goes to the home screen. Purchase continues even when the game isn't active anymore, with "purchase was successful" notice at the end. Now if I go back to the game, I'll get what I bought, but if I instead quit the game from recently used apps and then restart it, I don't get the purchased IAP.
I'm not sure if the IAP would really be charged in this case, as sandboxed IAPs don't show up in the purchase history and I don't have a published game to test this. I figure this is a very special scenario, but still possible? With nonconsumables I could probably get the IAP with restore purchases, but I currently have only consumables.
|