Unlike
reset() which clears everything, revokeEntitlements() only expires entitlements - the user remains identified with their attributes intact. This allows you to test multiple offer cycles for the same user.Signature
Returns
ReturnsVoid on success. Throws EncoreError on failure.
Usage
Complete Testing Lifecycle for a User
Test the full entitlement lifecycle from offer presentation through expiry and re-testing for the same user:Testing with Universal Sandbox Key
CombinerevokeEntitlements() with the universal sandbox key to test multiple offer cycles for the same user from any location:
The combination of universal sandbox key (
configure()) and revokeEntitlements() allows you to test multiple offer cycles for the same user from any location without geo-filtering restrictions.Related Methods
configure()- Configure SDK with admin API keyisActive()- Check entitlement status after revokingreset()- Clear user session and entitlementsidentify()- Set user ID for testing specific users