enableLogging

Enables verbose logging within the native MobilePush SDK and Unified SFMC SDK.

Syntax

MCReactModule.enableLogging();

Returns

  • void - No return value.

Example

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

const enableSDKLogging = () => {
  try {
    MCReactModule.enableLogging();
    console.log("SDK logging enabled");
  } catch (error) {
    console.error("Error enabling logging:", error);
  }
};

See Also