Instructs the native SDK to log the SDK state to the native logging system (Logcat for Android and Xcode or Console for iOS). The Engagement Support team requests for the SDK state logs during support calls as they can help diagnose most issues.
Syntax
MCReactModule.logSdkState();
Returns
void- No return value.
Example
import { MCReactModule } from "react-native-marketingcloudsdk";
const logCurrentSDKState = () => {
try {
MCReactModule.logSdkState();
console.log("SDK state logged to native logging system");
} catch (error) {
console.error("Error logging SDK state:", error);
}
};