Hey community, I ran into a problem that I can't solve.
When i execute Purchases.shared.purchase(package: Package) as async throws function, i cant really stop the Task { } higher in the call hierarchy and because of that, when user tap subscribe/buy → Task with Purchases.shared.purchase starts to execute → then user close VC or navigate to another → Task is still continues to execute and shows a system bottom sheet with purchase description, price and buy button, but I'm doing everything to cancel task. But nothing works.
Is there any way to cancel a Task that has already started a RevenueCat system call to the StoreKit system ???
Cancelling Purchases.shared.purchase(package: Package)
+1
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.