Best way to cancel SKDownload

If a user of my applications cancels the download, I do not want the corresponding purchase to be successful. Is there a way to tell StoreKit to cancel a purchase that’s running so that it doesn’t show a warning saying that the “purchase was successful”?

+4
source share
1 answer

If clicking “cancel” means that the user clicks the cancel button inside your application, according to SKPaymentQueue Class Ref , there can’t cancel a purchase that has been set in motion.

But the user can press the cancel button on the screen Confirm Your In App Purchase, which you can handle to update your interface.

+1
source

Source: https://habr.com/ru/post/1619118/


All Articles