---
schema_version: "1"
id: 621e218631a0349663144b5ee82cc59355109464272b6ff3f84a886eebe78035
title: SFMC Core
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/react-hybrid/sfmc-core.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/sfmc-core.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 24749302353f567aefd75edf647d9298ec24aa622e64a46c92b6acb676b1b594
products:
  - Salesforce Engagement SDK
---
# SFMC Core

This section provides API reference details for SFMC Core module in React Native unified plugin.

## setProfileId

Sets the profile identifier for the device user.

### Syntax

```javascript
SFMCSdkModule.setProfileId(profileId);
```

### Parameters

| Parameter   | Type     | Description                                                                                                                                                          |
| ----------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `profileId` | `string` | The profile ID (contact key) for the device user. Use a stable identifier, such as a CRM user ID or email-based key, so the same user is recognized across sessions. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setProfileId("user-1234");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity-editor/profile-id.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(py)profileId>)

## getProfileId

Returns the profile identifier currently set on the device.

### Syntax

```javascript
SFMCSdkModule.getProfileId();
```

### Returns

- `Promise<string \| null>` - A promise that resolves to the current profile ID.

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const profileId = await sfmc.getProfileId();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/profile-id.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityInfo.html#/c:@M@SFMCSDK@objc(pl)SFIdentityInfo(py)profileId>)

## setAttribute

Sets an attribute value in the device user's registration profile.

### Syntax

```javascript
SFMCSdkModule.setAttribute(key, value);
```

### Parameters

| Parameter | Type     | Description                                                         |
| --------- | -------- | ------------------------------------------------------------------- |
| `key`     | `string` | The attribute name in the registration profile.                     |
| `value`   | `string` | The attribute value to assign to `key` in the registration profile. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setAttribute("email", "sample@example.com");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-attributes-editor/put.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(im)addAttributeWithKey:value:>)

## setAttributes

Sets multiple attribute values in the device user's registration profile in one call.

### Syntax

```javascript
SFMCSdkModule.setAttributes(attributes);
```

### Parameters

| Parameter    | Type     | Description                                                                                                                            |
| ------------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `attributes` | `object` | The key-value map of identity attributes to set in one call. Each key is an attribute name and each value is a string attribute value. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setAttributes({
  email: "sample@example.com",
  tier: "gold",
});
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-attributes-editor/set.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(im)addAttributesWithAttributes:>)

## clearAttribute

Clears an attribute value from the device user's registration profile.

### Syntax

```javascript
SFMCSdkModule.clearAttribute(key);
```

### Parameters

| Parameter | Type     | Description                                                              |
| --------- | -------- | ------------------------------------------------------------------------ |
| `key`     | `string` | The attribute name whose value is cleared from the registration profile. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.clearAttribute("email");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-attributes-editor/clear.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(im)clearAttributeWithKey:>)

## clearAllAttributes

Clears all attributes from the device user's registration profile.

### Syntax

```javascript
SFMCSdkModule.clearAllAttributes();
```

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.clearAllAttributes();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/-builder/clear-attributes.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(im)clearAllAttributes>)

## getAttributes

Returns the attributes currently set in the device user's registration profile.

### Syntax

```javascript
SFMCSdkModule.getAttributes();
```

### Returns

- `Promise<object \| null>` - A promise that resolves to the attribute key-value map.

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const attributes = await sfmc.getAttributes();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/attributes.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityInfo.html#/c:@M@SFMCSDK@objc(pl)SFIdentityInfo(py)attributes>)

## setPartyIdentificationName

Sets the party identification name in the device user's identity profile.

### Syntax

```javascript
SFMCSdkModule.setPartyIdentificationName(name);
```

### Parameters

| Parameter | Type     | Description                                        |
| --------- | -------- | -------------------------------------------------- |
| `name`    | `string` | The party identification name for the device user. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setPartyIdentificationName("Jane Doe");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity-editor/party-identification-name.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(py)partyIdentificationName>)

## setPartyIdentificationNumber

Sets the party identification number in the device user's identity profile.

### Syntax

```javascript
SFMCSdkModule.setPartyIdentificationNumber(numberValue);
```

### Parameters

| Parameter     | Type     | Description                                          |
| ------------- | -------- | ---------------------------------------------------- |
| `numberValue` | `string` | The party identification number for the device user. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setPartyIdentificationNumber("PID-1001");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity-editor/party-identification-number.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(py)partyIdentificationNumber>)

## setPartyIdentificationType

Sets the party identification type in the device user's identity profile.

### Syntax

```javascript
SFMCSdkModule.setPartyIdentificationType(type);
```

### Parameters

| Parameter | Type     | Description                                        |
| --------- | -------- | -------------------------------------------------- |
| `type`    | `string` | The party identification type for the device user. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setPartyIdentificationType("customer");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity-editor/party-identification-type.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityModifier.html#/c:@M@SFMCSDK@objc(pl)SFIdentityModifier(py)partyIdentificationType>)

## getPartyIdentificationName

Returns the party identification name currently set on the device.

### Syntax

```javascript
SFMCSdkModule.getPartyIdentificationName();
```

### Returns

- `Promise<string \| null>` - A promise that resolves to the current party identification name.

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const partyName = await sfmc.getPartyIdentificationName();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/party-identification-name.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityInfo.html#/c:@M@SFMCSDK@objc(pl)SFIdentityInfo(py)partyIdentificationName>)

## getPartyIdentificationNumber

Returns the party identification number currently set on the device.

### Syntax

```javascript
SFMCSdkModule.getPartyIdentificationNumber();
```

### Returns

- `Promise<string \| null>` - A promise that resolves to the current party identification number.

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const partyNumber = await sfmc.getPartyIdentificationNumber();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/party-identification-number.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityInfo.html#/c:@M@SFMCSDK@objc(pl)SFIdentityInfo(py)partyIdentificationNumber>)

## getPartyIdentificationType

Returns the party identification type currently set on the device.

### Syntax

```javascript
SFMCSdkModule.getPartyIdentificationType();
```

### Returns

- `Promise<string \| null>` - A promise that resolves to the current party identification type.

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const partyType = await sfmc.getPartyIdentificationType();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/party-identification-type.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Protocols/IdentityInfo.html#/c:@M@SFMCSDK@objc(pl)SFIdentityInfo(py)partyIdentificationType>)

## track

Tracks an event, which can trigger SDK actions such as in-app message display.

### Syntax

```javascript
SFMCSdkModule.track(event);
```

### Parameters

| Parameter | Type     | Description                                                                                                                                                                    |
| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `event`   | `object` | The `SFMCEvent` payload to track. Valid event types are `CustomEvent`, `EngagementEvent`, `IdentityEvent`, `SystemEvent`, `CartEvent`, `OrderEvent`, and `CatalogObjectEvent`. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi, SFMCEvent } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const event: SFMCEvent = { objType: "CustomEvent", name: "app_open" };
sfmc.track(event);
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk/-s-f-m-c-sdk/-companion/track.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Classes/SFMCSdk.html#/c:@CM@SFMCSDK@objc(cs)SFMCSdk(cm)trackWithEvent:>)

## sendImmediate

Tracks an event and sends it immediately without waiting for the next batch cycle.

### Syntax

```javascript
SFMCSdkModule.sendImmediate(event);
```

### Parameters

| Parameter | Type     | Description                                                                                                                                                                                         |
| --------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `event`   | `object` | The `SFMCEvent` payload to track and send immediately. Valid event types are `CustomEvent`, `EngagementEvent`, `IdentityEvent`, `SystemEvent`, `CartEvent`, `OrderEvent`, and `CatalogObjectEvent`. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi, SFMCEvent } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const event: SFMCEvent = {
  objType: "CartEvent",
  subtype: "add",
  lineItems: [
    {
      catalogObjectType: "Product",
      catalogObjectId: "sku-1",
      quantity: 2,
      price: 9.99,
      currency: "USD",
    },
  ],
};
sfmc.sendImmediate(event);
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk/-s-f-m-c-sdk/-companion/send-immediate.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Classes/SFMCSdk.html#/c:@CM@SFMCSDK@objc(cs)SFMCSdk(cm)sendImmediateWithEvent:>)

## flush

Flushes all queued events to Marketing Cloud servers immediately.

### Syntax

```javascript
SFMCSdkModule.flush();
```

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.flush();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk/-s-f-m-c-sdk/-companion/flush.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Classes/SFMCSdk.html#/c:@CM@SFMCSDK@objc(cs)SFMCSdk(cm)flush>)

## setLogging

Sets the log level for the native Marketing Cloud SDK and Unified SFMC SDK.

### Syntax

```javascript
SFMCSdkModule.setLogging(level);
```

### Parameters

| Parameter | Type     | Description                                                               |
| --------- | -------- | ------------------------------------------------------------------------- |
| `level`   | `string` | The SDK log level. Valid values are `DEBUG`, `WARN`, `ERROR`, and `NONE`. |

### Returns

- `void`

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
sfmc.setLogging("DEBUG");
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk.components.logging/-log-level/index.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Classes/SFMCSdk.html#/c:@M@SFMCSDK@objc(cs)SFMCSdk(cm)setLoggerWithLogLevel:logOutputter:>)

## getSdkState

Returns the current SDK state object for diagnostics and support troubleshooting.

### Syntax

```javascript
SFMCSdkModule.getSdkState();
```

### Returns

- `Promise<object>` - A promise that resolves to the SDK state object.

### Example

```javascript
import { SFMCSdkModule } from "@sfmc/react-native-sfmc-core";
import type { SFMCSdkApi } from "@sfmc/react-native-sfmc-core";

const sfmc: SFMCSdkApi = await SFMCSdkModule.requestSdk();
const sdkState = await sfmc.getSdkState();
```

### See Also

- [Android SDK Reference](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/11.0/sfmcsdk/com.salesforce.marketingcloud.sfmcsdk/-s-f-m-c-sdk/get-sdk-state.html)
- [iOS SDK Reference](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/%3Chttps://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/11.0/Classes/SFMCSdk.html#/c:@M@SFMCSDK@objc(cs)SFMCSdk(cm)state>)
