Disables verbose logging within the native MobilePush SDK.
Syntax
MCReactModule.disableLogging();
Returns
void- No return value.
Example
import { MCReactModule } from "react-native-marketingcloudsdk";
const disableSDKLogging = () => {
try {
MCReactModule.disableLogging();
console.log("SDK logging disabled");
} catch (error) {
console.error("Error disabling logging:", error);
}
};
See Also
- enableLogging() Methods
- logSdkState() Methods
- Troubleshoot Issues in Android Apps
- SDK Reference for iOS: Logger Methods