Skip to main content
Question

Purchases.shared.getCustomerInfo too slow.

  • June 28, 2024
  • 1 reply
  • 74 views

Forum|alt.badge.img+5

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
  • 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?