Transaction.currentEntitlements still contains transaction after clearing purchase history

I'm implementing a non-consumable IAP for our app using StoreKit2. After making a purchase using a sandbox account, then revoking the purchase history for that account, Transaction.currentEntitlements still contains a valid purchase transaction.

My understanding is that transactions should be updated in the background (via Transaction.updates), but is there something else that needs to happen to properly revoke the purchase?

Answered by App Store Commerce Engineer in 768044022

After clearing a user's purchase history in Sandbox, we recommend calling AppStore.sync() to get a fresh state for the user.

Accepted Answer

After clearing a user's purchase history in Sandbox, we recommend calling AppStore.sync() to get a fresh state for the user.

Transaction.currentEntitlements still contains transaction after clearing purchase history
 
 
Q