No way to close the page for subscription Offer Code processing invoked by "SKPaymentQueue.default().presentCodeRedemptionSheet()".

Problem was observed on the published App because the IAP offer code processing is only done on the published App. I implemented the ".presentCodeRedemptionSheet()" command by tapping Offer Code button. Then the typed in offer code was processed by this page and the offer was successfully purchased from AppStore.

After detecting the purchased status, executed "SKPaymentQueue.default().finishTransaction(transaction)".

I thought that finishTransaction() would close the offer code processing page that is not written in document. However the page for offer code processing page was still displayed and was never closed.

The only way to close the input page for offer code is to manually tapping "Cancel" button.

Since there is no way to close the offer code processing page, I added ".popToRootViewController(animated: true)" in order to close all pages and views after detection of purchased status but failed to close the offer code processing page managed by Apple.

I need to know how to programmatically close the offer code processing page invoked by ".presentCodeRedemptionSheet()".

I got no response from FeedBackAssistant and Apple Developer Technical Support.

Thank you.

Can you share a FB# for the ticket filed? It is expected the sheet is dismissed automatically upon redemption and doesn't require your app to do so on behalf of the customer or App Store.

Is this reproducible with iOS 16.4?

FB# is "FB12039090" dated Mar 7,2023.

I can not test this issue under IOS 16.4 due to the Offer code cancelation requires at least one month. Since redemption is managed by Apple, I also thought offer code processing page should be dismissed by Apple. However three testers checked this symptom, bout we all failed to dismiss the sheet.
You can see the problem symptom by seeing the attached video in the FB#. Thank you.

I just made the custom offer code "123ABC" for this App, since the previous custom offer code is expired.

Same issue here.

No way to close the page for subscription Offer Code processing invoked by "SKPaymentQueue.default().presentCodeRedemptionSheet()".
 
 
Q