Skip to main content
Question

Purchases.shared.getCustomerInfo too slow.

  • 28 June 2024
  • 1 reply
  • 38 views

Forum|alt.badge.img+3

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

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • July 2, 2024

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?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings