Skip to main content
Question

entitlementInfo Identifier Case is Inconsitent

  • June 2, 2022
  • 0 replies
  • 78 views

Forum|alt.badge.img+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?

 

    
 

This post has been closed for comments