Question

Purchases.shared.getCustomerInfo too slow.

  • 28 June 2024
  • 1 reply
  • 22 views

Badge +1

Users have reported and proved active subscriptions. Only they are presented with the paywall. 

 

here is my code to check their status 


 

static func isPremiumSubscriber() -> Bool {

var subscribed = false

 Purchases.shared.getCustomerInfo { customerInfo, error in


//this is too slow as subscribed is not updated to the result of 

//!customerInfo!.entitlements.active.isEmpty

//before function is returned with the initial value of false for subscribed.



     subscribed = !customerInfo!.entitlements.active.isEmpty 


}

return subscribed
}

 


This post has been closed for comments

1 reply

Userlevel 5
Badge +9

Hi @t1esto,

Can you open a support ticket so that you can share some app user IDs that are affected as well as your paywall code?