Did you ever find a solution to this? I, too am not able to replicate the the steps in apple's guideline https://developer.apple.com/documentation/storekit/original_api_for_in-app_purchase/testing_in-app_purchases_with_sandbox/testing_an_interrupted_purchase specifically item #10 does't come up until the app goes to background and then comes back to foreground.
Even if I did utilise the
NotificationCenter.default.addObserver(self, selector:#selector(appActive), name: UIApplication.didBecomeActiveNotification, object: nil)
and get it to call the transactionObserver, it still doesn't come out. A physical touch on the home button, and then relaunching the app is the only thing that will trigger the purchase again
Topic:
App & System Services
SubTopic:
StoreKit
Tags: