StoreKit2 in Sandbox, currentEntitlements is not always working

Hi

We are adding subscriptions auto-renewable in our app. Subscription will be one month, auto-renewable. We are testing in sandbox.

Results of Transaction.currentEntitlements and Transaction.all are sometimes not available :

  • for example, we buy a subscription, we always well receive the hook sent (responseBodyV2DecodedPayload is correct), so subscription is active BUT when we ask Transaction.currentEntitlements, result is no subscription available, neither to Transaction.all (for this one, last transaction is not present) - this problem happens in around 20% of tests.
  • possibly, once the auto-renew is done (5 minutes later, because of sandbox) everything works fine OR not

Is it possible that in sandbox, behavior is a bit "random", not 100% safe ?

Thanks for any help :)

Replies

I've faced the same issue. Have you found a workaround to make it more robust?