Hello. I check this property using (customerInfo.entitlements.active.value.periodType == .intro) which works fine in sandbox, however in production it doesn’t detect the free trial period correctly. Any thoughts?
Thanks.
Kareem.
Hello. I check this property using (customerInfo.entitlements.active.value.periodType == .intro) which works fine in sandbox, however in production it doesn’t detect the free trial period correctly. Any thoughts?
Thanks.
Kareem.
Hello Kareem,
Could you please help us better understand the issue by providing what is being returned to periodType?
If periodType doesn’t return a value, it would be because the underlying entitlement that you are checking is null.
Thank you in advance,
Anna
Hello Anna. I was trying to determine if user was within the one month free trial period. I needed to check against ".trial" as well as ".intro" in production code. Everything works fine now. Thanks. Kareem
Thank you for letting us know, in case there is anything else we can help with, please feel free to reach out to support@revenuecat.com for a quicker answer.
I think there might be a bug here… I think the reason Kareem needs to check both ".trial" as well as ".intro" in production, is because in Sandbox only “.intro” is ever returned, incorrectly.
For example, testing with the below configuration will return .into, and not .trial within that 1 week free trial period. When checking purchaserInfo?.entitlementseOfferingIdentifiers.fullAccess.rawValue].periodType
Is this correct?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.