tvOS 14 Receipt Refresh Opens App Store

SKReceiptRefreshRequest is causing the tvOS App Store to open to to a "Coming Soon!" screen.

Code Block
request = SKReceiptRefreshRequest(receiptProperties: nil)
request?.delegate = self
request?.start()


I'm currently using the refresh whenever my implementation of SKPaymentTransactionObserver encounters an error.

I think I can resolve this by only refreshing when a receipt is missing like SwiftyStoreKit, but it's really strange that this would cause the App Store to open.


Update:
I'm not positive that SKReceiptRefreshRequest is the culprit here. I'm waiting for my sandbox receipt to expire so I can test again.
SKReceiptRefreshRequest is not the problem.

When I press a button that adds a payment to the SKPaymentQueue.
Code Block
let payment = SKPayment(product: product)
SKPaymentQueue.default().add(payment)


Sometimes I see a prompt like:
Code Block
Sign In to the iTunes Store
If you have an Apple ID, sign in with it here.
[Environment: Sandbox]
Enter your password


If this prompt appears and I enter my password then I'm directed to the App Store "Coming Soon!" screen.
If this prompt does not appear then the IAP flow works as expected.

Note: This prompt doesn't say which Apple ID I'm signing into, and I can't switch the sandbox account anywhere in tvOS 14 settings. In tvOS 13 there was an option to switch the IAP sandbox account.

tvOS 14 Receipt Refresh Opens App Store
 
 
Q