问题
So I've tested my application's In App Purchase content at length during development using the Sandbox mode.
For some reason now that the application is live in the App Store when clicking the purchase button nothing happens at all.
It looks like the Apple review team was able to successfully complete a purchase based on server logs (could be wrong about this tho).
I'm using SwiftyStoreKit to handle in app purchases.
Any ideas why it would work perfectly during development and in sandbox mode and not even do anything when calling the SwiftyStoreKit.purchaseProduct
method in production?
If I had to guess it has to do with the App Store servers needing time to process everything. It took a little bit to appear on the App Store. But I'm not completely confident that is the issue.
回答1:
All the sudden this seems to be working. It now asks for the Touch ID to confirm purchase. So it looks like it was an App Store server propagation issue.
来源:https://stackoverflow.com/questions/43359067/ios-in-app-purchase-fails-silently-in-production