Advanced
setSubscriptionStatus()
Manually sets the user's subscription status when using a custom PurchaseController.
This method should only be used with a custom PurchaseController
. The default purchase controller manages subscription status automatically.
Purpose
Manually updates the user's subscription status when implementing custom purchase logic.
Signature
Parameters
Name | Type | Description |
---|---|---|
status | SubscriptionStatus | The subscription status to set (active, inactive, unknown). |
Returns / State
Returns a Future<void>
that completes when the subscription status is updated.
Usage
After custom purchase:
Subscription expiry handling:
Manual status sync:
How is this guide?