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A0C,EAC/D,CAEA,qCAAO,CAA+B,GAClC,sBAAsB,YAAY,qCAAsC,EAC5E,CAEA,+BAAO,CAAyB,GACR,YAAhB,SAAS,GACT,iBAAiB,yBAAyB,GAE1C,QAAQ,IAAI,oBAEpB,CAEA,+BAAO,CAAyB,GACR,YAAhB,SAAS,GACT,iBAAiB,yBAAyB,GAE1C,QAAQ,IAAI,oBAEpB,CAEA,0BAAO,CAAoB,GACH,YAAhB,SAAS,IACT,iBAAiB,uBAAuB,iBACxC,sBAAsB,YAAY,gBAAiB,IAEnD,QAAQ,IAAI,oBAEpB,CAEA,iCAAO,CAA2B,GACV,YAAhB,SAAS,IACT,iBAAiB,uBAAuB,wBACxC,sBAAsB,YAAY,uBAAwB,IAE1D,QAAQ,IAAI,oBAEpB,CAOA,gCAAO,CAA0B,GACT,QAAhB,SAAS,GACT,iBAAiB,0BAA0B,GAE3C,QAAQ,IAAI,oBAEpB","file":"/npm/@oracle/react-native-pushiomanager@7.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@oracle/react-native-pushiomanager@7.0.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n* Copyright © 2024, Oracle and/or its affiliates. All rights reserved.\n*\n* Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.\n*/\n\nimport { NativeModules, NativeEventEmitter, DeviceEventEmitter, Platform } from 'react-native';\n\nconst RCTPushIOManager = NativeModules.PushIOManager;\nconst RCTPushIOEventEmitter = Platform.select({\n    ios: new NativeEventEmitter(NativeModules.PushIOEventEmitter),\n    android: DeviceEventEmitter\n});\n\nexport default class PushIOManager {\n    /**\n    *@callback callback\n    *@param {failure} error object\n    *@param {success}  info object\n    */\n\n    /**\n     * @typedef {object} Preference\n     * @property {string} key - Unique Identifier for this preference.\n     * @property {string} label - Human-Readable description of this preference.\n     * @property {string} type - Data type of this preference. Possible values: 'STRING', 'NUMBER', 'BOOLEAN'.\n     * @property {string} value - Preference value.\n     */\n\n    /**\n     * @typedef {object} MessageCenterMessage\n     * @property {string} messageID\n     * @property {string} subject\n     * @property {string} message\n     * @property {string} iconURL\n     * @property {string} messageCenterName\n     * @property {string} deeplinkURL\n     * @property {string} richMessageHTML\n     * @property {string} richMessageURL\n     * @property {string} sentTimestamp\n     * @property {string} expiryTimestamp\n     */\n\n    /**\n     * @typedef {object} InteractiveNotificationCategory\n     * @property {string} orcl_category\n     * @property {InteractiveNotificationButton[]} orcl_btns\n     */\n\n    /**\n     * @typedef {object} InteractiveNotificationButton\n     * @property {string} id\n     * @property {string} action \n     * @property {string} label\n     */\n\n    /**\n     * @typedef {object} RemoteMessage\n     * @property {string} to\n     * @property {string=} collapseKey \n     * @property {string=} messageId\n     * @property {string=} messageType\n     * @property {string=} ttl\n     * @property {object} data\n     */\n\n    /**\n     * @typedef {object} GeoRegion\n     * @property {string} geofenceId\n     * @property {string} geofenceName \n     * @property {string} zoneName\n     * @property {string} zoneId\n     * @property {string} source\n     * @property {number} deviceBearing\n     * @property {number} deviceSpeed\n     * @property {number} dwellTime\n     * @property {object} extra\n     */\n\n    /**\n     * @typedef {object} BeaconRegion\n     * @property {string} beaconId\n     * @property {string} beaconName \n     * @property {string} beaconTag\n     * @property {string} beaconProximity\n     * @property {string} iBeaconUUID\n     * @property {number} iBeaconMajor\n     * @property {number} iBeaconMinor\n     * @property {string} eddyStoneId1\n     * @property {string} eddyStoneId2\n     * @property {string} zoneName\n     * @property {string} zoneId\n     * @property {string} source\n     * @property {number} dwellTime\n     * @property {object} extra\n     */\n\n    /**\n     * @typedef {object} ConversionEvent\n     * @property {string} orderId\n     * @property {number} orderTotal\n     * @property {number} orderQuantity\n     * @property {number} conversionType\n     * @property {object} customProperties\n     */\n\n    /**\n     * \n    * loggingLevel; to be used with [setLogLevel()]{@link setLogLevel}\n    * @typedef {Enumerator}loggingLevel\n    * @param {number} NONE:0\n    * @param {number} ERROR :1\n    * @param {number} INFO: 2\n    * @param {number} WARN: 3\n    * @param {number} DEBUG: 4\n    * @param {number} VERBOSE: 5\n    * @readonly\n    * @enum {number}\n    * @memberof PushIOManager\n    * \n    */\n\n    /**\n     * Sets the log level to print in console. \n     * @param {number} loggingLevel Numeric value to set type of logging\n     */\n\n    static setLogLevel(loggingLevel) {\n        RCTPushIOManager.setLogLevel(loggingLevel);\n    }\n\n    /**\n    * Gets the Responsys SDK version.\n    * @param {callback} callback Success callback with the SDK version value. \n    */\n\n    static getLibVersion(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getLibVersion(callback);\n        } else {\n            RCTPushIOManager.frameworkVersion(callback);\n        }\n    }\n\n    /**\n    * Sets Enable/Disable logging. By default logging is enabled with default Info {@link loggingLevel}. \n    * <br/>Developer can change the log level by calling {@link setLogLevel}.\n    * @param {boolean} isEnabled true, enable console log printing. \n    * <br/> false, disable console log printing.\n    * \n    */\n\n    static setLoggingEnabled(isEnabled) {\n        RCTPushIOManager.setLoggingEnabled(isEnabled);\n    }\n\n    /**\n    * Registers this app installation with Responsys.\n    * \n    * @param {boolean} enablePushNotification Whether to enable push notifications. Passing `true` will show the default system push notification permission dialog prompt.\n    * (Not available on iOS platform.)\n    * @param {boolean} useLocation Whether to send location data along with the registration request. Passing `true` will show the default system location permission dialog prompt.\n    * (User location is not available on iOS platform.)\n    * @param {callback} callback callback with boolean value TRUE if register event created and stored successfully, FALSE otherwise.\n    * @see {@tutorial Config}\n    */\n\n    static registerAppForPush(enablePushNotification, useLocation, callback){\n        if(Platform.OS === 'android'){\n            RCTPushIOManager.registerAppForPush(enablePushNotification,useLocation,callback);\n        }else{\n            RCTPushIOManager.registerApp(useLocation,callback);\n        }\n    }\n\n    /**\n     * Registers this app installation with Responsys\n     * \n     * @param {boolean} useLocation Whether to send location data along with the registration request. Passing `true` will show the default system location permission dialog prompt.\n     * @param {callback} callback callback with boolean value TRUE if register event created and stored successfully, FALSE otherwise.\n     * @see {@tutorial Config}\n     */\n    static registerApp(useLocation,callback){\n        if(Platform.OS === 'android'){\n            console.log(\"This API is no longer supported. Use PushIOManager.registerAppForPush() for Android.\"); \n        }else{\n            RCTPushIOManager.registerApp(useLocation,callback);\n        }\n       \n    }\n\n    /**\n     * Unregister this app installation with Responsys. This will prevent the app from receiving push notifications.\n     * @see {@tutorial Config}\n     * @param {callback} callback callback with boolean value TRUE if unregister event created and stored successfully, \n     * <br/>FALSE otherwise.\n     * \n     */\n\n    static unregisterApp(callback) {\n        RCTPushIOManager.unregisterApp(callback);\n    }\n\n    /**\n     * Configures the SDK using the provided config file name.\n     * <br/>For Android, the file should be placed in the android <i>src/main/assets</i> directory\n     * @see {@tutorial Config}\n     * @param {string} fileName Name of the json config file.\n     * @param {callback} callback callback with the result of configuration.\n     * \n     * \n     */\n\n    static configure(fileName, callback) {\n        RCTPushIOManager.configure(fileName, callback);\n    }\n\n    /**\n     * Overwrites the Responsys API key provided in the pushio_config.json - this method should be called immediately after creating a new PushIOManager.\n     *\n     * @param {string} apiKey The new API key.\n     */\n    static overwriteApiKey(apiKey) {\n        RCTPushIOManager.overwriteApiKey(apiKey);\n    }\n\n    /**\n     * Overwrites the Responsys API key provided in the pushio_config.json -\n     * this method should be called immediately after creating a new PushIOManager.\n     *\n     * @param {string} accountToken The new Account token\n     */\n\n    static overwriteAccountToken(accountToken) {\n        RCTPushIOManager.overwriteAccountToken(accountToken);\n    }\n\n    /**\n     * Records pre-defined and custom events.\n     * <br/>You can set extra properties specific to this event via the properties parameter.\n     * \n     * @param {string} eventName name of the event to be tracked\n     * @param {object} properties event properties to attach with the given event name.\n     * @param {function} callback callback.\n     */\n\n    static trackEvent(eventName, properties) {\n        RCTPushIOManager.trackEvent(eventName, properties);\n    }\n\n    /**\n     * Sets the External Device Tracking ID. Useful if you have another ID for this device.\n     * @param {string} externalDeviceTrackingID External Device Tracking ID.\n     */\n\n    static setExternalDeviceTrackingID(externalDeviceTrackingID) {\n        RCTPushIOManager.setExternalDeviceTrackingID(externalDeviceTrackingID);\n    }\n\n    /**\n     * Gets the External Device Tracking ID.\n     * @param {callback} callback callback with External Device Tracking ID\n     */\n\n    static getExternalDeviceTrackingID(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getExternalDeviceTrackingID(callback);\n        } else {\n            RCTPushIOManager.externalDeviceTrackingID(callback);\n        }\n    }\n\n    /**\n     * Associates this app installation with the provided userId in Responsys.\n     * <br/> UserId can be set to target individual users for push notifications, sent along with push registration.\n     * @param {string} userId User ID\n     */\n\n    static registerUserId(userId) {\n        RCTPushIOManager.registerUserId(userId);\n    }\n\n    /**\n     * Gets the User ID set earlier using [registerUserId]{@link registerUserId}.\n     * @param {callback} callback callback with userId\n     */\n\n    static getRegisteredUserId(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getRegisteredUserId(callback);\n        } else {\n            RCTPushIOManager.getUserId(callback);\n        }\n    }\n\n    /**\n     * Removes association between this app installation and the User ID that \n     * was set earlier using [registerUserId]{@link registerUserId}.\n     * <br/>Generally used when the user logs out.\n     */\n\n    static unregisterUserId() {\n        RCTPushIOManager.unregisterUserId();\n    }\n\n    /**\n     * Sends push engagement information to Responsys.\n     * <br>Tracks the engagement for the provided engagement metric type with additional properties\n     * \n     * @param {engagementType} metric One of [engagementType]{@link engagementType}\n     * @param {object=} properties Custom data to be sent along with this request.\n     * @param {callback} callback callback. \n     */\n\n    static trackEngagement(metric, properties, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.trackEngagement(metric, properties, callback);\n        } else {\n            var value = ((metric < 6) ? (metric - 1) : metric);\n            RCTPushIOManager.trackEngagement(value, properties, callback);\n        }\n    }\n\n    /**\n     * Sends the MessageCenter open engagement for the provided message id to Responsys. Call this whenever message is opened.\n     * <br/><br/>This should be called when the message-detail view is visible to the user\n     * @param {string} messageID engagement message id to be reported\n     */\n\n    static trackMessageCenterOpenEngagement(messageId) {\n        RCTPushIOManager.trackMessageCenterOpenEngagement(messageId);\n    }\n\n    /**\n     * Sends Message Center message engagement to Responsys.\n     * <br/>This should be called when the message-list view is visible to the user.\n     * @param {string} messageID engagement message id to be reported\n     */\n\n    static trackMessageCenterDisplayEngagement(messageId) {\n        RCTPushIOManager.trackMessageCenterDisplayEngagement(messageId);\n    }\n    /**\n     * Create a session when MessagaCenter/Inbox view will appear. \n     */\n\n    static onMessageCenterViewDisplayed() {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onMessageCenterViewDisplayed();\n        } else {\n            RCTPushIOManager.messageCenterViewWillAppear();\n        }\n    }\n    /**\n     * Sync all the MessageCenter display engagements to Responsys server\n     */\n\n    static onMessageCenterViewFinished() {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onMessageCenterViewFinished();\n        } else {\n            RCTPushIOManager.messageCenterViewWillDisappear();\n        }\n    }\n\n    /**\n     * Declares a preference that will be used later with [set...Preference()]{@link setStringPreference}\n     * \n     * @param {string} key Unique ID for this preference.\n     * @param {string} label Human-Readable description of this preference.\n     * @param {string} valueType Data type of this preference. Possible values: 'STRING', 'NUMBER', 'BOOLEAN'.\n     * @param {callback} callback Success callback. \n     * \n     * @see {@link setBoolPreference}\n     * @see {@link setNumberPreference}\n     * @see {@link setStringPreference}\n     */\n\n    static declarePreference(key, label, valueType, callback) {\n        RCTPushIOManager.declarePreference(key, label, valueType, callback);\n    }\n\n    /**\n     * Saves the key/value along with the label provided earlier in [declarePreference]{@link declarePreference}\n     * \n     * @param {string} key Unique ID for this preference.\n     * @param {string} value Value of type String.\n     * @param {callback} callback callback with boolean value TRUE if string preference value assigned, FALSE otherwise\n     */\n\n    static setStringPreference(key, value, callback) {\n        RCTPushIOManager.setStringPreference(key, value, callback);\n    }\n    /**\n     * Saves the key/value along with the label provided earlier in [declarePreference]{@link declarePreference}\n     * \n     * @param {string} key Unique ID for this preference.\n     * @param {number} value Value of type Number.\n     * @param {callback} callback Success callback. \n     */\n\n    static setNumberPreference(key, value, callback) {\n        RCTPushIOManager.setNumberPreference(key, value, callback);\n    }\n\n    /**\n     * Saves the key/value along with the label provided earlier in [declarePreference]{@link declarePreference}\n     * \n     * @param {string} key Unique ID for this preference.\n     * @param {boolean} value Value of type Boolean.\n     * @param {callback} callback callback with preference if preference is found for the key, NULL otherwise.\n     */\n\n    static setBooleanPreference(key, value, callback) {\n        RCTPushIOManager.setBooleanPreference(key, value, callback);\n    }\n\n    /**\n     * Gets all preferences set earlier using [set...Preference()]{@link setStringPreference}.\n     * @param {String} key  Unique ID of preference.\n     * @param {callback} callback callback with preference if preference is found for the key, NULL otherwise.\n     */\n\n    static getPreference(key, callback) {\n        RCTPushIOManager.getPreference(key, callback);\n    }\n    /**\n     * Gets all preferences set earlier using [set...Preference()]{@link setStringPreference}.\n     * @param {function} callback Success callback with {Preference[]} Array of [Preference]{@link Preference} in success callback.\n     */\n\n    static getPreferences(callback) {\n        RCTPushIOManager.getPreferences(callback);\n    }\n    /**\n     * Removes preference data for the given key.\n     * \n     * @param {string} key Unique ID for this preference.\n     */\n\n    static removePreference(key) {\n        RCTPushIOManager.removePreference(key);\n    }\n\n    /**\n     * Removes all preference data.\n     */\n\n    static clearAllPreferences() {\n        RCTPushIOManager.clearAllPreferences();\n    }\n\n    /**\n    * Gets the API Key used by the device to register with Responsys.\n    * @param {function} callback callback with configured APIKey. nil if no api-key configured.\n    */\n\n    static getAPIKey(callback) {\n        RCTPushIOManager.getAPIKey(callback);\n    }\n    /**\n    * Gets the Account Token used by the device to register with Responsys.\n    * @param {callback} callback callback with configured AccountToken. nil if no AccountToken configured\n    */\n\n    static getAccountToken(callback) {\n        RCTPushIOManager.getAccountToken(callback);\n    }\n\n    /**\n    * Sets the advertising ID.\n    * @param {string} advertisingId External Device Tracking ID. \n    */\n\n    static setAdvertisingID(advertisingId) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setAdvertisingID(advertisingId);\n        } else {\n            RCTPushIOManager.setAdvertisingIdentifier(advertisingId);\n        }\n    }\n\n    /**\n     * Gets the advertising ID.\n     * <br/> In iOS, its Advertising Identifier (IDFA) (@link setAdvertisingID}\n     * @param {callback} callback Success callback with advertising Identifier. \n     */\n\n    static getAdvertisingID(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getAdvertisingID(callback);\n        } else {\n            RCTPushIOManager.advertisingIdentifier(callback);\n        }\n    }\n\n    /**\n     * Gets the Responsys Device ID.\n     * @param {callback} callback Success callback with device ID value. \n     */\n\n    static getDeviceID(callback) {\n        RCTPushIOManager.getDeviceID(callback);\n    }\n\n    /**\n     * sets the Responsys web URL.\n     * \n     * @param {string} executeRsysWebURL url\n     */\n\n    static setExecuteRsysWebUrl(executeRsysWebURL) {\n        RCTPushIOManager.setExecuteRsysWebURL(executeRsysWebURL);\n    }\n\n    /**\n     * Gets the Responsys web URL.\n     * \n     * @param {callback} callback Success callback with device ID value. \n     */\n\n    static getExecuteRsysWebUrl(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getExecuteRsysWebUrl(callback);\n        } else {\n            RCTPushIOManager.executeRsysWebURL(callback);\n        }\n    }\n\n    /**\n     * Removes push engagement related data for a session.\n     * <br/>This will prevent further engagements from being reported until the app is opened again via a push notification. \n     */\n\n    static resetEngagementContext() {\n        RCTPushIOManager.resetEngagementContext();\n    }\n\n    /**\n     * Gets the maximum age of engagement\n     * @param {callback} callback callback with number value of server returned max age value (when application invoked from email).\n     * <br/> Return -1 if no max age (from server) fetched. \n     */\n\n    static getEngagementMaxAge(callback) {\n        RCTPushIOManager.getEngagementMaxAge(callback);\n    }\n\n    /**\n     * Gets the engagement date recorded when engagement information fetched from server and stored locally.\n    * @param {callback} callback callback with string value of engagement date,time in ISO 8601 format\n    */\n\n    static getEngagementTimestamp(callback) {\n        RCTPushIOManager.getEngagementTimestamp(callback);\n    }\n    /** \n     * Enable the fetch messages for all message center names from the server\n     * @param {boolean} messageCenterEnabled boolean value to enable the messages fetch. \n     * <br/> True to enable ,False to disable.\n     */\n\n    static setMessageCenterEnabled(messageCenterEnabled) {\n        RCTPushIOManager.setMessageCenterEnabled(messageCenterEnabled);\n    }\n\n    /**\n     * Gets the status of MessageCenter enabled\n     * @param {function} callback callback with boolean value. \n     */\n\n    static isMessageCenterEnabled(callback) {\n        RCTPushIOManager.isMessageCenterEnabled(callback);\n    }\n\n    /**\n     * Fetch the list of Message Center messages for given MessageCenter name.\n     * \n     * @param {string} messageCenter  Name of MessageCenter to fetch the list of messages\n     * @param {callback} callback Success callback with messageCenter and messages, Failure callback with messageCenter and errorReason\n     */\n\n    static fetchMessagesForMessageCenter(messageCenter, callback) {\n        RCTPushIOManager.fetchMessagesForMessageCenter(messageCenter, callback);\n    }\n\n    /**\n     * Fetches rich content for the given message ID.\n     * \n     * @param {string} messageID\n     * @param {callback} callback Success callback with messageId and richContent, Failure callback with messageId and errorReason\n     */\n\n    static fetchRichContentForMessage(messageId, callback) {\n        RCTPushIOManager.fetchRichContentForMessage(messageId, callback);\n    }\n    /**\n     * Sets the badge count on app icon for the no. of Message Center messages.\n     * \n     * @param {number} badgeCount\n     * @param {boolean} forceSetBadge Force a server-sync for the newly set badge count.\n     * @param {callback} callback callback. \n    */\n\n    static setBadgeCount(badgeCount, forceSetBadge, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setBadgeCount(badgeCount, forceSetBadge, callback);\n        } else {\n            RCTPushIOManager.setBadgeCount(badgeCount, callback);\n        }\n    }\n\n    /**\n     * Gets the current badge count for Message Center messages.\n     * \n     * @param {callback} callback callback as a number value. \n     */\n\n    static getBadgeCount(callback) {\n        RCTPushIOManager.getBadgeCount(callback);\n    }\n\n    /**\n     * Resets the badge count for Message Center messages.<br/>This is equivalent to calling [setBadgeCount(0, true)]{@link PushIOManager#setsetBadgeCount}\n     * \n     * @param {boolean} forceSetBadge Force a server-sync for the newly set badge count.\n     * @param {callback} callback callback. \n     */\n\n    static resetBadgeCount(forceSetBadge, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.resetBadgeCount(forceSetBadge, callback);\n        } else {\n            RCTPushIOManager.resetBadgeCount(callback);\n        }\n    }\n\n    /**\n     * Removes all Message Center messages from the SDK's cache.<br/><br/>This does not affect your local cache of the messages.\n     */\n\n    static resetMessageCenter() {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.resetMessageCenter();\n        } else {\n            RCTPushIOManager.clearMessageCenterMessages();\n        }\n    }\n\n    /**\n    * Removes all In-App messages from the SDK's cache.\n    * \n    */\n\n    static clearInAppMessages() {\n        RCTPushIOManager.clearInAppMessages();\n    }\n    /**\n     * Enable/Disable the in-app messages pre-fetch. \n     * <br/>If enabled, all the in-app messages are pre-fetch and stored in the SDK, and triggered from local storage. \n     * <br/>If disabled then in-app messages are not pre-fetched, so not available to be triggered for the event i.e.: $ExplicitAppOpen.\n     * @param {Boolean} isEnabled \n     */\n\n    static setInAppFetchEnabled(isEnabled) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setInAppFetchEnabled(isEnabled);\n        } else {\n            RCTPushIOManager.setInAppMessageFetchEnabled(isEnabled);\n        }\n    }\n\n    /**\n     * Enable the crash logging of PushIO sdk. \n     * <br/>It will not make and capture any crashes of apps. By default it is enable. You can set `NO` \n     * <br/>if you do not want PushIO sdk to collect crashes.\n     * @param {Boolean} isEnabled boolean value to enable the crash logging.\n     */\n    static setCrashLoggingEnabled(isEnabled) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setCrashLoggingEnabled(isEnabled);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * Check if crash logging is enabled for PushIOManager SDK. We capture only crashes related to sdk.\n     * @param {callback} callback with boolean value\n     */\n\n    static isCrashLoggingEnabled(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.isCrashLoggingEnabled(callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     * Sets the device token\n     * <br/> available in Android only\n     * @param {string} deviceToken \n     */\n\n    static setDeviceToken(deviceToken) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setDeviceToken(deviceToken);\n        } else {\n            console.log(\"API not supported. Please use `didRegisterForRemoteNotificationsWithDeviceToken`\");\n        }\n    }\n    /**\n     * Checks if the push payload provided is sent by Responsys platform or not.\n     * @param {object} message \n     * @param {callback} callback \n     */\n\n    static isResponsysPush(message, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.isResponsysPush(message, callback);\n        } else {\n            RCTPushIOManager.isResponsysPayload(message, callback);\n        }\n    }\n\n    /**\n     * Informs the SDK that the user has entered a geo-fence.\n     * @param {GeoRegion} region\n     * @param {callback} callback callback with regionID and regionType.\n     */\n\n    static onGeoRegionEntered(region, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onGeoRegionEntered(region, callback);\n        } else {\n            RCTPushIOManager.didEnterGeoRegion(region, callback);\n        }\n    }\n\n    /**\n     * Informs the SDK that the user has exited a geo-fence.\n     * \n     * @param {GeoRegion} region\n     * @param {callback} callback callback with regionID and regionType.\n     */\n\n    static onGeoRegionExited(region, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onGeoRegionExited(region, callback);\n        } else {\n            RCTPushIOManager.didExitGeoRegion(region, callback);\n        }\n    }\n\n    /**\n     * Informs the SDK that the user has entered a beacon region.\n     * \n     * @param {BeaconRegion} region\n     * @param {callback} callback callback with regionID and regionType.\n     */\n\n    static onBeaconRegionEntered(region, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onBeaconRegionEntered(region, callback);\n        } else {\n            RCTPushIOManager.didEnterBeaconRegion(region, callback);\n        }\n    }\n\n    /**\n     * Informs the SDK that the user has exited a beacon region.\n     * \n     * @param {BeaconRegion} region\n     * @param {callback} callback callback with regionID and regionType.\n     */\n\n    static onBeaconRegionExited(region, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onBeaconRegionExited(region, callback);\n        } else {\n            RCTPushIOManager.didExitBeaconRegion(region, callback);\n\n        }\n    }\n\n    /**\n     * Sends Message Center message engagement to Responsys.\n     * <br/>This should be called when the message-list view is visible to the user.\n     * @param {string} messageID\n     */\n\n    static trackMessageCenterDisplayEngagement(messageID) {\n        RCTPushIOManager.trackMessageCenterDisplayEngagement(messageID);\n    }\n\n    /**\n     * Sends Message Center message engagement to Responsys.\n     * <br/>This should be called when the message-detail view is visible to the user.\n     * @param {string} messageID\n     */\n\n    static trackMessageCenterOpenEngagement(messageID) {\n        RCTPushIOManager.trackMessageCenterOpenEngagement(messageID);\n    }\n    /**\n     * Create a session when Message Center/Inbox view will appear.\n     */\n\n    static messageCenterViewDidMount() {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onMessageCenterViewVisible();\n        } else {\n            RCTPushIOManager.messageCenterViewWillAppear();\n        }\n    }\n    /**\n     * Sync all the MessageCenter display engagements to responsys server.\n     */\n\n    static messageCenterViewWillUnmount() {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.onMessageCenterViewFinish();\n        } else {\n            RCTPushIOManager.messageCenterViewWillDisappear();\n        }\n    }\n\n    // Android-Only APIs\n    /**\n     * Sets Enable/Disable the Message Center badging\n     * @param {Boolean} isBadgingEnabled \n     */\n    static setMessageCenterBadgingEnabled(isBadgingEnabled) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setMessageCenterBadgingEnabled(isBadgingEnabled);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * \n     * @param {*} areNotificationsStacked \n     */\n\n    static setNotificationsStacked(areNotificationsStacked) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setNotificationsStacked(areNotificationsStacked);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static getNotificationStacked(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getNotificationStacked(callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static setDefaultSmallIcon(resourceId) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setDefaultSmallIcon(resourceId);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static setDefaultLargeIcon(resourceId) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setDefaultLargeIcon(resourceId);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     * Request the SDK to process and display notification using the provided {@link com.google.firebase.messaging.RemoteMessage}\n     *\n     * @param message\n     */\n\n    static handleMessage(message) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.handleMessage(message);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * Removes all app-defined Interactive Notification categories from the SDK's cache.\n     */\n\n    static clearInteractiveNotificationCategories() {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.clearInteractiveNotificationCategories();\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * Adds a new app-defined Interactive Notification category.\n     * @param {InteractiveNotificationCategory} notificationCategory \n     * @param {callback} callback \n     */\n\n    static addInteractiveNotificationCategory(notificationCategory, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.addInteractiveNotificationCategory(notificationCategory, callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * Removes app-defined Interactive Notification category.\n     * @param {string} categoryId \n     */\n\n    static deleteInteractiveNotificationCategory(categoryId) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.deleteInteractiveNotificationCategory(categoryId);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * Gets a single Interactive Notification category for the given category ID.\n     * @param {string} categoryId \n     * @param {callback} callback \n     */\n\n    static getInteractiveNotificationCategory(categoryId, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.getInteractiveNotificationCategory(categoryId, callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n\n\n    // iOS-Only APIs\n    /**\n     * \n     */\n    static registerForRemoteNotifications() {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.registerForRemoteNotifications();\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     * registerForAllRemoteNotificationTypes Listener is added\n     * @param {callback} callback \n     */\n\n    static registerForAllRemoteNotificationTypes(callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOEventEmitter.addListener('registerForAllRemoteNotificationTypes', result => {\n                if (result.error) {\n                    callback(result.error, result.response)\n                } else {\n                    callback(null, result.response)\n                }\n            });\n\n            RCTPushIOManager.registerForAllRemoteNotificationTypes();\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n    * Asks user permissions for all push notifications types. i.e.: Sound/Badge/Alert types.\n    * If readyForRegistrationCompHandler is not set, then provided completionHandler is assigned to it, to let application have access when SDK receives deviceToken.\n    * Only available on iOS platform.\n     * @param {int} authOptions Notification auth types i.e.: Sound/Badge/Alert.\n     * @param {InteractiveNotificationCategory[]} categories categories Contains the notification categories definitions.\n     * @param {*} callback \n     */\n\n    static registerForNotificationAuthorizations(authOptions, categories, callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.registerForNotificationAuthorizations(authOptions, categories, callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     * Asks user permissions for all push notifications types. i.e.: Sound/Badge/Alert types. You can pass the notification categories definitions to register. \n     * \n     * Only available on iOS platform.\n     *\n     * @param {InteractiveNotificationCategory[]} categories Contains the notification categories definitions.\n     * @param {callback} callback  callback.\n     */\n\n    static registerForAllRemoteNotificationTypesWithCategories(categories, callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.registerForAllRemoteNotificationTypesWithCategories(categories, callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     * Check if log printing is enabled in debug console.\n     * @param {boolean} isLoggingEnabled\n     * @param {callback} callback with boolean value\n     */\n\n    static isLoggingEnabled(callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.isLoggingEnabled(callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n    /**\n     * Checks if the push notification response provided is sent by Responsys platform or not.\n     * @param {*} response \n     * @param {callback} callback with boolean value.TRUE if push payload is sent by Responsys platform otherwise FALSE.\n     */\n\n    static isResponsysNotificationResponse(response, callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.isResponsysNotificationResponse(response, callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static setConfigType(configType) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.setConfigType(configType);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static configType(callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.configType(callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     Reset all SDK data. i.e.: DeviceID, UserId, Preferences.\n    */\n\n    static resetAllData() {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.resetAllData();\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static trackEmailConversion(uri, callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.trackEmailConversion(uri, callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static addInAppMessageCTALinkListener(callback) {\n        return RCTPushIOEventEmitter.addListener('PIORsysWebURLResolvedNotification', callback);\n    }\n    /**\n     * To Add listener for deelink \n     * @param {Boolean} isSet \n     * @param {callback} callback \n     */\n\n    static setOpenURLListener(isSet, callback) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.setOpenURLListener(isSet);\n        }\n\n        if (isSet) {\n            return RCTPushIOEventEmitter.addListener('PIOHandleOpenURL', callback);\n        } else {\n           // return RCTPushIOEventEmitter.removeListener('PIOHandleOpenURL', callback);\n        }\n    }\n\n    static setDelayRichPushDisplay(delayRichPush) {\n        RCTPushIOManager.setDelayRichPushDisplay(delayRichPush);\n    }\n    /**\n     * Set the delay to display  Rich Push. If this flag is set  Rich Push will be not displayed immediately and to display it call `showRichPushMessage` API.\n     */\n\n    static showRichPushMessage() {\n        RCTPushIOManager.showRichPushMessage();\n    }\n\n    /**\n     * Gets the status ofthe delay Rich Push flag\n     * @param {callback} callback with boolean value\n     */\n    static isRichPushDelaySet(callback) {\n        RCTPushIOManager.isRichPushDelaySet(callback);\n    }\n    /**\n     * Tracks the conversions for PUSHIO_ENGAGEMENT_METRIC_INAPP_PURCHASE and PUSHIO_ENGAGEMENT_METRIC_PURCHASE events.\n     * @param {ConversionEvent} event \n     * @param {callback} callback \n     */\n\n    static trackConversionEvent(event, callback) {\n        if (Platform.OS === 'ios') {\n            event[\"conversionType\"] = ((event[\"conversionType\"] < 6) ? (event[\"conversionType\"] - 1) : event[\"conversionType\"]);\n        }\n        RCTPushIOManager.trackConversionEvent(event, callback);\n    }\n\n\n    /**\n     *  Sets delay in registration. Registration will be delayed while launching the app/from coming to background\n     * @param {Boolean} delayRegistration \n     * \n     */\n\n    static setDelayRegistration(delayRegistration) {\n        if (Platform.OS === 'android') {\n            console.log(\"API not supported\");\n        } else {\n            RCTPushIOManager.setDelayRegistration(delayRegistration);\n        }\n    }\n    /**\n     * This api provides the status, if `setDelayRegistration` is enabled of not. \n     * @param {callback} callback with boolean value. true if registration will be delayed otherwise false\n     *\n     */\n\n    static isDelayRegistration(callback) {\n        if (Platform.OS === 'android') {\n            console.log(\"API not supported\");\n        } else {\n            RCTPushIOManager.isDelayRegistration(callback);\n        }\n    }\n\n    static setNotificationSmallIconColor(color) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setNotificationSmallIconColor(color);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static setInAppMessageBannerHeight(height, callback) {\n        if (typeof height != 'number') {\n            console.log(\"Banner height should be a Number type\");\n            return;\n        }\n        RCTPushIOManager.setInAppMessageBannerHeight(height, callback);\n    }\n\n    static getInAppMessageBannerHeight(callback) {\n        RCTPushIOManager.getInAppMessageBannerHeight(callback);\n    }\n\n    static setStatusBarHiddenForIAMBannerInterstitial(hideStatusBar) {\n        RCTPushIOManager.setStatusBarHiddenForIAMBannerInterstitial(hideStatusBar)\n    }\n\n    static isStatusBarHiddenForIAMBannerInterstitial(callback) {\n        RCTPushIOManager.isStatusBarHiddenForIAMBannerInterstitial(callback);\n    }\n\n    static addMessageCenterUpdateListener(callback) {\n        RCTPushIOEventEmitter.addListener('PIOMessageCenterUpdateNotification', callback);\n    }\n\n    static setNotificationSmallIcon(resourceName) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setNotificationSmallIcon(resourceName);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static setNotificationLargeIcon(resourceName) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.setNotificationLargeIcon(resourceName);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static onPushTokenReceived(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.addNativeEventListener('pio_new_token');\n            RCTPushIOEventEmitter.addListener('pio_new_token', callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    static onPushNotificationReceived(callback) {\n        if (Platform.OS === 'android') {\n            RCTPushIOManager.addNativeEventListener('pio_new_push_message');\n            RCTPushIOEventEmitter.addListener('pio_new_push_message', callback);\n        } else {\n            console.log(\"API not supported\");\n        }\n    }\n\n    /**\n     * customise in-app view close button with title, background color, title color and image.\n     *\n     */\n\n    static setInAppCustomCloseButton(closebutton) {\n        if (Platform.OS === 'ios') {\n            RCTPushIOManager.setInAppCustomCloseButton(closebutton)\n        }  else {\n            console.log(\"API not supported\");\n        }\n    }\n}\n"]}