disablePush

Disables push messaging in the MobilePush SDK.

Syntax

MCReactModule.disablePush();

Returns

  • void - No return value.

Example

import { MCReactModule } from "react-native-marketingcloudsdk";

const disablePushNotifications = () => {
  try {
    MCReactModule.disablePush();
    console.log("Push notifications disabled");
  } catch (error) {
    console.error("Error disabling push:", error);
  }
};

See Also