I have renewable IAPs in my app. Today i updated unity IAP to the latest version. After the update, everything is still working fine on iOS 11 but it’s not on iOS 10. What basically happened is that i see the apple popups as usual, saying that the purchase is completed but the function defined as
public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs args)
is never called and the user gets stuck there.
On iOS 11 the functions is called correctly.
Hi,
Have you tried it with a new Sandbox tester account?
The Objective-C source code of Unity IAP is ‘Assets\Plugins\UnityPurchasing\iOS\UnityPurchasing.m’. You can debug it in Xcode.
The ‘updatedTransactions’ method should be called after you buy a product. And it will call ‘onTransactionSucceeded’ method then.
You can print out the receipt.
Please let me know if the ‘onTransactionSucceeded’ method is fired on iOS 10.
Weird update: i was debugging as you asked and i noticed it was working fine all of a sudden. Then i tried to reproduce the issue reverting everything and reimporting the latest version again but still no problems.
Maybe there was a temporary problem with apple Sandbox? I will do further investigations before doing a release with the new version but for now, thank you for your help!
EDIT GOT IT: another developer changed the date on that device and forgot to put it back to “automatic” til this morning. I tried to put the date in the future again and i saw the issue. Not sure if this is intended