Question

entitlementInfo Identifier Case is Inconsitent


Badge +4

I am implementing paid subscriptions in my iOS app. I have an entitlement called “Pro” in RevenueCat, but this seems to be returned to the app sometimes as “pro” and sometimes as “Pro”. 

 

I get the entitlements using Purchases.shared.getCustomerInfo { (purchaserInfo, error) in 

}

 

purchaserInfo?.entitlements contains one entry as expected, but both the key and the entitlementInfo.identifier are “pro” not “Pro”. However, just after a purchase completes successfully, it is [edit: sometimes] returned as Pro. 

This is using a sandbox user, if that is relevant.

Is this expected behaviour? I suspect not, but can’t figure out what’s going in. Perhaps something to do with caching of user entitlements. Any ideas?

 

    
 


0 replies

Be the first to reply!

Reply