disablePush

Disables push messaging in the MobilePush SDK.

Syntax 

1MCReactModule.disablePush();

Returns 

  • void - No return value.

Example 

1import { MCReactModule } from "react-native-marketingcloudsdk";
2
3const disablePushNotifications = () => {
4  try {
5    MCReactModule.disablePush();
6    console.log("Push notifications disabled");
7  } catch (error) {
8    console.error("Error disabling push:", error);
9  }
10};

See Also 

Related Methods