Skip to main content
Question

API taking a while to load


Forum|alt.badge.img+2

I have the following code to purchase a subscription

  Purchases.shared.logIn(uid) { (purchaserInfo, created, error) in
            Purchases.shared.offerings { (offerings, error) in
                if let package = offerings?.current?.lifetime {
                    Purchases.shared.purchasePackage(package) { (transaction, purchaserInfo, error, userCancelled) in
                        let productId = transaction?.payment.productIdentifier ?? "lifetime"
                        if purchaserInfo?.entitlements["pro"]?.isActive == true {

 

It takes a while to load. Does anyone know why? Whenever someone purchases a subscription using the revenuecat api in my IOS app, it takes a while for the purchase to go through. 

 
 
 

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 366 replies
  • October 24, 2022

Hi,

 

How long would you say it takes to go through? 3 seconds? 30 seconds?


Forum|alt.badge.img+2
  • Author
  • New Member
  • 1 reply
  • October 24, 2022

More than several minutes


Miguel Carranza
RevenueCat Staff
Forum|alt.badge.img+6

Sometimes it can take a while (a few seconds), but several minutes is too much. Is this for production or sandbox?


Reply


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