UNPKG

react-native-marketingcloudsdk

Version:

A React Native component to access the native Salesforce Marketing Cloud MobilePush SDKs

416 lines (374 loc) 23.9 kB
import {NativeModules} from 'react-native'; const {RNSFMCSdk} = NativeModules; /** * @class MCReactModule */ class MCReactModule { /** * The current state of the pushEnabled flag in the native Marketing Cloud * SDK. * @returns {Promise<boolean>} A promise to the boolean representation of whether push is * enabled. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.push/-push-message-manager/is-push-enabled.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)pushEnabled |iOS Docs} */ static isPushEnabled() { return RNSFMCSdk.isPushEnabled(); } /** * Enables push messaging in the native Marketing Cloud SDK. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.push/-push-message-manager/enable-push.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)setPushEnabled: |iOS Docs} */ static enablePush() { RNSFMCSdk.enablePush(); } /** * Disables push messaging in the native Marketing Cloud SDK. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.push/-push-message-manager/disable-push.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)setPushEnabled: |iOS Docs} */ static disablePush() { RNSFMCSdk.disablePush(); } /** * Returns the token used by the Marketing Cloud to send push messages to * the device. * @returns {Promise<?string>} A promise to the system token string. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/get-system-token.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)deviceToken |iOS Docs} */ static getSystemToken() { return RNSFMCSdk.getSystemToken(); } /** * Returns the maps of attributes set in the registration. * @returns {Promise<Object.<string, string>>} A promise to the key/value map of attributes set * in the registration. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/get-attributes.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)attributes |iOS Docs} */ static getAttributes() { return RNSFMCSdk.getAttributes(); } /** * Sets the value of an attribute in the registration. * @param {string} key - The name of the attribute to be set in the * registration. * @param {string} value - The value of the `key` attribute to be set in * the registration. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/8.0/-s-f-m-c%20-s-d-k/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/set-profile-attributes.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/9.0/Classes/IDENTITY.html#/c:@M@SFMCSDK@objc(cs)SFMCSdkIDENTITY(im)setProfileAttributes: |iOS Docs} */ static setAttribute(key, value) { RNSFMCSdk.setAttribute(key, value); } /** * Clears the value of an attribute in the registration. * @param {string} key - The name of the attribute whose value should be * cleared from the registration. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/8.0/-s-f-m-c%20-s-d-k/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/clear-profile-attribute.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/9.0/Classes/IDENTITY.html#/c:@M@SFMCSDK@objc(cs)SFMCSdkIDENTITY(im)clearProfileAttributeWithKey: |iOS Docs} */ static clearAttribute(key) { RNSFMCSdk.clearAttribute(key); } /** * @param {string} tag - The tag to be added to the list of tags in the * registration. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/-editor/add-tag.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)addTag: |iOS Docs} */ static addTag(tag) { RNSFMCSdk.addTag(tag); } /** * @param {string} tag - The tag to be removed from the list of tags in the * registration. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/-editor/remove-tag.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)removeTag: |iOS Docs} */ static removeTag(tag) { RNSFMCSdk.removeTag(tag); } /** * Returns the tags currently set on the device. * @returns {Promise<string[]>} A promise to the array of tags currently set in the native SDK. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/get-tags.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)tags |iOS Docs} */ static getTags() { return RNSFMCSdk.getTags(); } /** * Sets the contact key for the device's user. * @param {string} contactKey - The value to be set as the contact key of * the device's user. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/8.0/-s-f-m-c%20-s-d-k/com.salesforce.marketingcloud.sfmcsdk.components.identity/-identity/set-profile-id.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/9.0/Classes/IDENTITY.html#/c:@M@SFMCSDK@objc(cs)SFMCSdkIDENTITY(im)setProfileId: |iOS Docs} */ static setContactKey(contactKey) { RNSFMCSdk.setContactKey(contactKey); } /** * Returns the contact key currently set on the device. * @returns {Promise<?string>} A promise to the current contact key. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/get-contact-key.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)contactKey |iOS Docs} */ static getContactKey() { return RNSFMCSdk.getContactKey(); } /** * Enables verbose logging within the native Marketing Cloud SDK and Unified SFMC SDK. * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/troubleshooting-android.html#check-the-sdks-log-output |Android Docs} * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/troubleshooting-ios.html#check-the-sdks-log-output |iOS Docs} */ static enableLogging() { RNSFMCSdk.enableLogging(); } /** * Disables verbose logging within the native Marketing Cloud SDK. * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/troubleshooting-android.html#check-the-sdks-log-output |Android Docs} * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/troubleshooting-ios.html#check-the-sdks-log-output |iOS Docs} */ static disableLogging() { RNSFMCSdk.disableLogging(); } /** * Instructs the native SDK to log the SDK state to the native logging system (Logcat for * Android and Xcode/Console.app for iOS). This content can help diagnose most issues within * the SDK and will be requested by the Marketing Cloud support team. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/SFMCSdk/8.0/-s-f-m-c%20-s-d-k/com.salesforce.marketingcloud.sfmcsdk/-s-f-m-c-sdk/get-sdk-state.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/SFMCSdk/9.0/Classes/SFMCSdk.html#/c:@M@SFMCSDK@objc(cs)SFMCSdk(cm)state |iOS Docs} */ static logSdkState() { RNSFMCSdk.logSdkState(); } /** * This method helps to track events, which could result in actions such as an InApp Message * being displayed. * * @param {CustomEvent | EngagementEvent | IdentityEvent | SystemEvent | CartEvent | OrderEvent * | CatalogObjectEvent} event - The event to be tracked. * * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/event-tracking.html |Android & iOS Docs} * */ static track(event) { RNSFMCSdk.track(event); } /** * Returns the deviceId used by the Marketing Cloud to send push messages to the device. * @returns {Promise<?string>} A promise to the device Id. * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.registration/-registration-manager/get-device-id.html |Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)deviceIdentifier |iOS Docs} */ static getDeviceId() { return RNSFMCSdk.getDeviceId(); } /** * Enables or disables analytics in the Marketing Cloud SDK. * @param {boolean} analyticsEnabled - A flag indicating whether analytics should be enabled. * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/runtime-toggles.html |Android & iOS Docs} */ static setAnalyticsEnabled(analyticsEnabled) { RNSFMCSdk.setAnalyticsEnabled(analyticsEnabled); } /** * Checks if analytics is enabled in the Marketing Cloud SDK. * @returns {Promise<boolean>} A promise to the boolean representation of whether analytics is * enabled. * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/runtime-toggles.html |Android & iOS Docs} */ static isAnalyticsEnabled() { return RNSFMCSdk.isAnalyticsEnabled(); } /** * Enables or disables Predictive Intelligence analytics in the Marketing Cloud SDK. * @param {boolean} analyticsEnabled - A flag indicating whether PI analytics should be enabled. * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/runtime-toggles.html |Android & iOS Docs} */ static setPiAnalyticsEnabled(analyticsEnabled) { RNSFMCSdk.setPiAnalyticsEnabled(analyticsEnabled); } /** * Checks if Predictive Intelligence analytics is enabled in the Marketing Cloud SDK. * @returns {Promise<boolean>} A promise to the boolean representation of whether PI analytics * is enabled. * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/runtime-toggles.html |Android & iOS Docs} */ static isPiAnalyticsEnabled() { return RNSFMCSdk.isPiAnalyticsEnabled(); } /** * Retrieves the list of Active, Read & Unread, not Deleted Inbox Messages. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-messages.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getAllMessages | iOS Docs} * **/ static getMessages() { return RNSFMCSdk.getMessages(); } /** * Retrieves the list of Active, Read, not Deleted Inbox Messages * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-read-messages.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getReadMessages | iOS Docs} * **/ static getReadMessages() { return RNSFMCSdk.getReadMessages(); } /** * Retrieves the list of Active, Unread, not Deleted Inbox Messages * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-unread-messages.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getUnreadMessages | iOS Docs} * **/ static getUnreadMessages() { return RNSFMCSdk.getUnreadMessages(); } /** * Retrieves the list of Active, Deleted Inbox Messages * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-deleted-messages.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getDeletedMessages | iOS Docs} * **/ static getDeletedMessages() { return RNSFMCSdk.getDeletedMessages(); } /** * Marks a InboxMessage as read in local storage. * @param id The InboxMessage#id() of the InboxMessage to mark as read. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/set-message-read.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)markMessageWithIdReadWithMessageId: | iOS Docs} * **/ static setMessageRead(id) { return RNSFMCSdk.setMessageRead(id); } /** * Marks a InboxMessage as deleted in local storage. * @param id The InboxMessage#id() of the InboxMessage to mark as deleted. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/delete-message.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)markMessageWithIdDeletedWithMessageId: | iOS Docs} * **/ static deleteMessage(id) { return RNSFMCSdk.deleteMessage(id); } /** * Retrieves the total number of not deleted Inbox Messages. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-message-count.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getAllMessagesCount | iOS Docs} * **/ static getMessageCount() { return RNSFMCSdk.getMessageCount(); } /** * Retrieves the total number of read, not deleted Inbox Messages. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-read-message-count.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getReadMessagesCount | iOS Docs} * **/ static getReadMessageCount() { return RNSFMCSdk.getReadMessageCount(); } /** * Retrieves the total number of unread, not deleted Inbox Messages * Returns a Future to the list of InboxMessage representing Active, Read & Unread, not Deleted Inbox Messages. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-unread-message-count.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getUnreadMessagesCount | iOS Docs} * **/ static getUnreadMessageCount() { return RNSFMCSdk.getUnreadMessageCount(); } /** * Retrieves the total number of deleted Inbox Messages regardless of their read status. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/get-deleted-message-count.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)getDeletedMessagesCount | iOS Docs} * **/ static getDeletedMessageCount() { return RNSFMCSdk.getDeletedMessageCount(); } /** * Marks all active, unread InboxMessages as read. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/mark-all-messages-read.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)markAllMessagesRead | iOS Docs} * **/ static markAllMessagesRead() { return RNSFMCSdk.markAllMessagesRead(); } /** * Marks all active InboxMessages as deleted. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/mark-all-messages-deleted.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)markAllMessagesDeleted | iOS Docs} * **/ static markAllMessagesDeleted() { return RNSFMCSdk.markAllMessagesDeleted(); } /** * Marks all active InboxMessages as deleted. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/register-inbox-response-listener.html | Android Docs} * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/implement-inbox-messaging-ios.html | iOS Docs} * **/ static registerInboxResponseListener() { return RNSFMCSdk.registerInboxResponseListener(); } /** * Marks all active InboxMessages as deleted. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/unregister-inbox-response-listener.html | Android Docs} * @see {@link https://developer.salesforce.com/docs/marketing/mobilepush/guide/implement-inbox-messaging-ios.html | iOS Docs} * **/ static unregisterInboxResponseListener() { return RNSFMCSdk.unregisterInboxResponseListener(); } /** * Requests an updated list of Inbox Messages from the Marketing Cloud Servers. The Inbox request can be made, at most, once per minute. This throttle also includes the Inbox request that is made by the SDK when your application is brought into the foreground. * * See also: * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/MarketingCloudSdk/9.0/-marketing%20-cloud%20-s-d-k/com.salesforce.marketingcloud.messages.inbox/-inbox-message-manager/refresh-inbox.html | Android Docs} * @see {@link https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledocs/MarketingCloudSdk/9.0/Classes/PushModule.html#/c:@M@MarketingCloudSDK@objc(cs)SFMCSdkPushModule(im)refreshMessages | iOS Docs} * **/ static refreshInbox() { return RNSFMCSdk.refreshInbox(); } } export default MCReactModule; export * from './event.js';