Skip to main content
Solved

[Sandbox - Xcode] Delegate Callback - IsActive returns True when Subscription Expired


Forum|alt.badge.img+2

Hello,

 

Using 

    func isProGranted(customer: CustomerInfo) -> Bool {

        if let entitlement = customer.entitlements["PRO"] {

            return entitlement.isActive
        }
        return false

    }

In the Delegate Callback 

 

extension SubscriptionViewModel:PurchasesDelegate {


    func purchases(_ purchases: Purchases, receivedUpdated customerInfo: CustomerInfo) {
        self.isPRO = manager.isProGranted(customer: customerInfo)
    }

}

The problem is, it returns true when we Cancel Subscription or when it is automatically expired

Best answer by DC-26df0a

Fixed.

Thanks   for the default settings in a Sandbox Xcode Environment!

we missed it.

 

 

View original
Did this post help you find an answer to your question?
This post has been closed for comments

3 replies

Forum|alt.badge.img+2
  • Author
  • Helper
  • 4 replies
  • June 2, 2023

**Important**

 

We waited a whole day as we thought maybe it’s Cache related.

Still, when launching the app, or checking to “Manage Susbcriptions” we see “Click to resubscribe” with our options.

 

The real question is, does the delegate is called with updated infos ONLY when we do a related action (restore, purchase ,etc.) or your server notify the delegate whenever the app is running?


Forum|alt.badge.img+2
  • Author
  • Helper
  • 4 replies
  • June 2, 2023

SANDBOX - XCODE Env

iOS 16.5

 

We see only the initial purchase on RC dashboard, there's no cancellation event as we did in the app.

something is broken here..


Forum|alt.badge.img+2
  • Author
  • Helper
  • 4 replies
  • Answer
  • June 2, 2023

Fixed.

Thanks   for the default settings in a Sandbox Xcode Environment!

we missed it.

 

 


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