How to handle shouldAddStorePayment for In-App Purchases in iOS 11?
问题 I'm trying to implement that new paymentQueue(_:shouldAddStorePayment:for:) method so my app can handle IAPs directly from the App Store. I'm using the itms-services:// url to test it, like it says here. The thing is, my SKPaymentTransactionObserver is a specific view controller, and if it's not visible when I open the itms-services:// link the delegate method won't be called. What can I do about that? I think I'd have to detect if the user is coming from the App Store to push the right view