---
schema_version: "1"
id: b5a4e809df4669e87736847cbe953c09f257b3e4891c5d8332553092825136c3
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/cordova/enablePush.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/enablePush.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0686ba887e7f07894effe33a80d5b86f9f01f2b66fcd200a4484bcbe54869414
products:
  - Salesforce Engagement SDK
---
# enablePush

Enables push messaging in the native MobilePush SDK.

## Syntax

`MCCordovaPlugin.enablePush([successCallback], [errorCallback])`

## Kind

Static method of `MCCordovaPlugin`.

## Parameters

| Parameter         | Type       | Description |
| ----------------- | ---------- | ----------- |
| `successCallback` | `function` |             |
| `errorCallback`   | `function` |             |
