Cannot get the active entitlements in Sandbox
environment when having same type of entitlements in Prod
.
#3590
Labels
Sandbox
environment when having same type of entitlements in Prod
.
#3590
Describe the bug
The user data in
prod
environment will override thesandbox
environment for active entitlements. I have same entitlements type(not exactly same as different expire dates.) in bothprod
andsandbox
env when usingcustomerInfo?.entitlements.activeInAnyEnvironment
I can only get theprod
env active entitlements. Which is fine. But when usingcustomerInfo?.entitlements.activeInCurrentEnvironment
I get no active entitlements no, as empty.usesStoreKit2IfAvailable(true)
)Purchases.logLevel = .verbose
will help us debug this issue.customerInfo?.entitlements.activeInCurrentEnvironment
to fetch the data.Expected behavior
Actual behavior
sandbox
env, the result is empty.prod
env, the result is correct.Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
If I "remove" the active entitlement from
prod
env user(either transfer to another user or delete it), I can get correct active entitlement insandbox
env.Additional context
The text was updated successfully, but these errors were encountered: