---
schema_version: "1"
id: 2a1a5ec3249c72b5726d1262a1b62bd472c3873bd3cb315ef6e80b61563ca6dc
title: enablePush
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/react/react_enablePush.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/react_enablePush.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: dd6a8c4c865a16d2a4bf032ade8e3f279e11887db0eacb1590a9aa485d87292a
products:
  - Salesforce Engagement SDK
---
# enablePush

Enables push messaging in the MobilePush SDK.

## Syntax

```javascript
MCReactModule.enablePush();
```

## Returns

- `void` - No return value.

## Example

```javascript
import { MCReactModule } from "react-native-marketingcloudsdk";

const enablePushNotifications = () => {
  try {
    MCReactModule.enablePush();
    console.log("Push notifications enabled");
  } catch (error) {
    console.error("Error enabling push:", error);
  }
};
```

## See Also

- [isPushEnabled() Method](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/react_isPushEnabled.md)
- [disablePush() Method](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/react_disablePush.md)
