# Subscription Status

Methods for getting and setting the user's subscription status.

> **Warning**

**Deprecated SDK**We strongly recommend migrating to the new [Superwall Expo SDK](/docs/expo), see our [migration guide](/docs/expo/guides/migrating-react-native) for details.



Purpose [#purpose]

Methods for managing the user's subscription status. When using a `PurchaseController`, you must call `setSubscriptionStatus()` to update the user's subscription status whenever entitlements change.

Methods [#methods]

getSubscriptionStatus() [#getsubscriptionstatus]

Retrieves the current subscription status of the user.

**Signature:**

```typescript
async getSubscriptionStatus(): Promise<SubscriptionStatus>
```

**Returns:** A Promise that resolves to the current `SubscriptionStatus`.

**Usage:**

```typescript
const status = await Superwall.shared.getSubscriptionStatus()
console.log("Subscription status:", status)
```

setSubscriptionStatus() [#setsubscriptionstatus]

Sets the subscription status of the user. When using a `PurchaseController`, you must call this method to update the user's subscription status. Alternatively, you can implement the [`SuperwallDelegate.subscriptionStatusDidChange`](/docs/react-native/sdk-reference/SuperwallDelegate) delegate callback to receive notifications whenever the subscription status changes.

**Signature:**

```typescript
async setSubscriptionStatus(status: SubscriptionStatus): Promise<void>
```

**Parameters:**

<TypeTable
  type="{
  status: {
    type: &#x22;SubscriptionStatus&#x22;,
    description: &#x22;The new subscription status.&#x22;,
    required: true,
  },
}"
/>

**Returns:** A Promise that resolves once the subscription status has been updated.

**Usage:**

```typescript
import { SubscriptionStatus } from "@superwall/react-native-superwall"

// Set active subscription with entitlements
const activeStatus = SubscriptionStatus.Active(["pro"])
await Superwall.shared.setSubscriptionStatus(activeStatus)

// Set inactive subscription
const inactiveStatus = SubscriptionStatus.Inactive()
await Superwall.shared.setSubscriptionStatus(inactiveStatus)
```

SubscriptionStatus Type [#subscriptionstatus-type]

The `SubscriptionStatus` type represents the user's subscription state:

* `SubscriptionStatus.Active(entitlements: string[] \| Entitlement[])` - User has an active subscription with the specified entitlements
* `SubscriptionStatus.Inactive()` - User does not have an active subscription
* `SubscriptionStatus.Unknown()` - Subscription status is unknown

When to Update [#when-to-update]

* After a successful purchase
* After a purchase restoration
* When a subscription expires
* When a subscription is cancelled
* On app launch (to sync with your backend)

Related [#related]

* [`PurchaseController`](/docs/react-native/sdk-reference/PurchaseController) - Handle purchases and update subscription status
* [`SuperwallDelegate`](/docs/react-native/sdk-reference/SuperwallDelegate) - Receive subscription status change notifications