Skip to main content
Question

Purchases.shared.getCustomerInfo too slow.

  • June 28, 2024
  • 1 reply
  • 57 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 


 

1static func isPremiumSubscriber() -> Bool {
2
3var subscribed = false
4
5 Purchases.shared.getCustomerInfo { customerInfo, error in
6
7
8//this is too slow as subscribed is not updated to the result of 
9
10//!customerInfo!.entitlements.active.isEmpty
11
12//before function is returned with the initial value of false for subscribed.
13
14
15
16     subscribed = !customerInfo!.entitlements.active.isEmpty 
17
18
19}
20
21return subscribed
22}

 

This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 518 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