Question

Cancelling tasks like Purchases.shared.customerInfo()

  • 12 October 2023
  • 1 reply
  • 17 views

Badge +3

Hi, 

I’m using async await and would like to cancel a network request when the app goes background. However, it seems that when calling `cancel()` on the Task for Purchases.shared.customerInfo for example, the network call doesn’t actually get cancelled. Is this by design?


1 reply

Userlevel 3
Badge +8

Hi,

Cancelling requests isn’t something that’s currently supported, but I can send that to our sdk team as a feature request for you.

Reply