Skip to main content
Question

API taking a while to load

  • October 23, 2022
  • 3 replies
  • 94 views

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. 

 
 
 
This post has been closed for comments

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 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
  • 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?