{"_id":"@cognifit/cordova-plugin-marketingcloudsdk","_rev":"4-d42378e7da44dcea75fd1a48dcab7184","name":"@cognifit/cordova-plugin-marketingcloudsdk","dist-tags":{"latest":"7.1.0"},"versions":{"6.3.1":{"name":"@cognifit/cordova-plugin-marketingcloudsdk","version":"6.3.1","description":"CogniFit's fork of cordova-plugin-marketingcloudsdk\nA Cordova Plugin to access the native Salesforce Marketing Cloud MobilePush SDKs","author":{"name":"Salesforce Marketing Cloud"},"license":"BSD-3-Clause","cordova":{"id":"cordova-plugin-marketingcloudsdk","platforms":["android","ios"]},"repository":{"type":"git","url":"git+https://github.com/cognifit/MC-Cordova-Plugin.git"},"keywords":["ecosystem:cordova","cordova-android","cordova-ios","salesforce","mobilepush","marketingcloud","marketingcloudsdk"],"scripts":{"precommit":"npm run format && npm test && npm run gen-docs && git add README.md","gen-docs":"jsdoc2md --template \"jsdoc2md/TEMPLATE.md\" \"www/**/*.js\" --plugin \"dmd-plugin-cordova-plugin\" > README.md","test":"npm run eslint","eslint":"node node_modules/eslint/bin/eslint www && node node_modules/eslint/bin/eslint src","format":"clang-format -i -style=file src/android/MCCordovaPlugin.java src/android/MCInitProvider.java src/android/MCSdkConfig.java src/ios/AppDelegate+MCCordovaPlugin.h src/ios/AppDelegate+MCCordovaPlugin.m src/ios/MCCordovaPlugin.h src/ios/MCCordovaPlugin.m tests/ios/MCCordovaPluginLib/MCCordovaPluginLibTests/MCCordovaPluginLibTests.m www/MCCordovaPlugin.js"},"devDependencies":{"clang-format":"^1.2.4","dmd-plugin-cordova-plugin":"^0.1.0","eslint":"^4.3.0","eslint-config-semistandard":"^11.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-es5":"^1.3.1","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","husky":"^0.10.1","jsdoc-to-markdown":"^1.2.0"},"gitHead":"75c22ae7cce250871094c59c219aa3b7f6987ce3","bugs":{"url":"https://github.com/cognifit/MC-Cordova-Plugin/issues"},"homepage":"https://github.com/cognifit/MC-Cordova-Plugin#readme","_id":"@cognifit/cordova-plugin-marketingcloudsdk@6.3.1","_nodeVersion":"15.4.0","_npmVersion":"7.2.0","dist":{"integrity":"sha512-nFi+2FoOCZKoZgZR7qXLVOK4Pl1MyzvhOiwoEDZ5Mf2Ze588voaickBm0DKPB6vWEwf0YQZhqc0pzmV8oG4JkQ==","shasum":"abef4457eb934619edd6a13d58c648ca57be506e","tarball":"https://registry.npmjs.org/@cognifit/cordova-plugin-marketingcloudsdk/-/cordova-plugin-marketingcloudsdk-6.3.1.tgz","fileCount":47,"unpackedSize":283294,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6vGbCRA9TVsSAnZWagAAlOMP/iTVgRLqqwpSB8Y6fa6V\ntwEHB7x/PEM51Dyw0pf8tvn9nM1+OFB3e+BEUUZ8GtVbmOfk3pZIqWArCIZE\nZU3H4tghZO1rtRpSDZpIEbHmAAOUlWXU9y33oJSoPt/TvA7TltHcOtH9TCMZ\n07CE+qaJlbvGIdzOA6bxLSvjV1Y6oEqN4p/D0U9SOB805K7sPWKUIP+tZXJh\n9mN57qSi3/rHbFVf3ByzW0obz2SXQ6mehzATbXglqQSPIFjGfkE+V0BsLRnG\nbGyN+wykdikv2PCmdncB2kA4T1HKN7UMCbKwt8nKSdcjjcsL0klwX7Lsai0L\n8FNQqEkuAgpTaDwhCbZUlY/iwuP9c9Thh0eHQdiQ1c4KWDR8ceXATIdEQjIF\nqcxIfti3TBHqlFm9uOWPPRyqG2YC6MIa/K/iqejCNu8J1m34G7MqMa5IXipC\nlEoCHR6HGdTgLsJjru2Ovt4OcfoPzRyFrJ96OwWF83mWy9YIBNR+AFpsVIi8\n0eTQBoJFtJpjtdMG7aKsCpJ/Iz4xxDFmo5iyePa7fDapnhVDpQNA5CUbXKaH\nIA2ZaXzwTD15RyjROESRwHPYlDGfqtMuqaXWVw9yO1RvkVj5zA9WqJ1nQaCu\n/ZLNjm+MutUNQCUo5MuoBzlLvc46LiRmyQeR8uoLyaz8LxN2yw8TakN+hDOP\n/+mQ\r\n=1iKB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICGWcpD1CKYBr4D39lPrH6LGegHpA6BamrSZRi2lfGLFAiA63dsnJU1FSuUZqKX3EB157Mkk5GDabeN8nF1S/YgA/w=="}]},"_npmUser":{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"},"directories":{},"maintainers":[{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-marketingcloudsdk_6.3.1_1609232794800_0.2603788415008972"},"_hasShrinkwrap":false},"7.1.0":{"name":"@cognifit/cordova-plugin-marketingcloudsdk","version":"7.1.0","description":"CogniFit's fork of cordova-plugin-marketingcloudsdk\nA Cordova Plugin to access the native Salesforce Marketing Cloud MobilePush SDKs","author":{"name":"Salesforce Marketing Cloud"},"license":"BSD-3-Clause","cordova":{"id":"cordova-plugin-marketingcloudsdk","platforms":["android","ios"]},"repository":{"type":"git","url":"git+https://github.com/cognifit/MC-Cordova-Plugin.git"},"keywords":["ecosystem:cordova","cordova-android","cordova-ios","salesforce","mobilepush","marketingcloud","marketingcloudsdk"],"scripts":{"precommit":"npm run format && npm test && npm run gen-docs && git add README.md","gen-docs":"jsdoc2md --template \"jsdoc2md/TEMPLATE.md\" \"www/**/*.js\" --plugin \"dmd-plugin-cordova-plugin\" > README.md","test":"npm run eslint","eslint":"node node_modules/eslint/bin/eslint www && node node_modules/eslint/bin/eslint src","format":"clang-format -i -style=file src/android/MCCordovaPlugin.java src/android/MCInitProvider.java src/android/MCSdkConfig.java src/ios/AppDelegate+MCCordovaPlugin.h src/ios/AppDelegate+MCCordovaPlugin.m src/ios/MCCordovaPlugin.h src/ios/MCCordovaPlugin.m tests/ios/MCCordovaPluginLib/Tests/Tests.m www/MCCordovaPlugin.js"},"devDependencies":{"clang-format":"^1.4.0","dmd-plugin-cordova-plugin":"^0.1.0","eslint":"^4.3.0","eslint-config-semistandard":"^11.0.0","eslint-config-standard":"^10.2.1","eslint-plugin-es5":"^1.3.1","eslint-plugin-import":"^2.3.0","eslint-plugin-node":"^5.0.0","eslint-plugin-promise":"^3.5.0","eslint-plugin-standard":"^3.0.1","husky":"^0.10.1","jsdoc-to-markdown":"^5.0.3"},"gitHead":"20db521b1adad37df1fd15caecfea19a5645cb88","bugs":{"url":"https://github.com/cognifit/MC-Cordova-Plugin/issues"},"homepage":"https://github.com/cognifit/MC-Cordova-Plugin#readme","_id":"@cognifit/cordova-plugin-marketingcloudsdk@7.1.0","_nodeVersion":"15.4.0","_npmVersion":"7.2.0","dist":{"integrity":"sha512-hh4WjxJ5FOlEsh+qbrg2AhoAQdh0Cc8RfFawa+kJvL2h3yEwXWRxNJVfXS69/E9HcMhkbSHNgONozfyWp+XMOQ==","shasum":"458e749f63230ecd39087437c78f290c2ceca5ac","tarball":"https://registry.npmjs.org/@cognifit/cordova-plugin-marketingcloudsdk/-/cordova-plugin-marketingcloudsdk-7.1.0.tgz","fileCount":45,"unpackedSize":289168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf6vIQCRA9TVsSAnZWagAANy4P/j4dxFzzde8QJvKMh53O\nr+paQiEg5kGLt+BhYKzKB0OgFiX68+Y/lRuOdq7fMdWZAHeE7qShUxJ9HVi1\nIX2RC2vVYDFw6AVb0Nly3tt7OitZ2yo4uCBwDKY4EzNJM1rFVRODw1ok92xF\nGNbqImzjFSTDKPpWcSJ3hgP6QD8vvUvYh+FDbGZlP/xDaxKXkLsb4T+R98bz\nB8oiUrvWBwjgAwgJjYvNzaMOFTrZz0gqeYTJV0HlZ+YADoPA5Dmw1+LZOq3v\n4HG+U/Irgw3CE5tQzMk0pMBS/8eNt07iic7xG3w0ueLdERYWKwPjHtogrmiT\ng4YvaFUk9aMgwhiuu+yTpJsCAymrqozP+VFE3Di7datfvC5THpOMXVJAimeo\neR8pHsa7Ly5In9W+d/rzEZIH8ttd3HjMFJqbVn6UZGqb0m6LM4o+PzfzjzoT\nnPxM7srn/isyY0h0wyQnx+2UjnChP7992eeXE/mmzmn//3fw4zR5zZKWw1U8\nvJoS8YlMEhMdV70dC3GJmgv3pUkQXlyp571fwEKMNhHF8GeePfurr/IlFjG0\ntH6sUUmZIHNcHfWzOWJ2DdeoZ7MEq2bjvStxDFr5XWKGuhCoUnFeixu9NOko\n0Y8mfKRTR+/by/47oEc0Gq164LcyQun4Ctm/BEiOF0iyr8noXQn8Y1gt1yl7\nyf8h\r\n=/3zJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGptngC4P4FckOhtmpo2tz2J18l9HRMovrxmwu+ECtvLAiEA5bHT1hwmY2gt8taIQPL09CqmsxKzzPGRq4pPxD4w6gM="}]},"_npmUser":{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"},"directories":{},"maintainers":[{"name":"pgutierrez_cf","email":"p.gutierrez@cognifit.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-marketingcloudsdk_7.1.0_1609232911645_0.8451878311895271"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-29T09:06:34.570Z","6.3.1":"2020-12-29T09:06:34.936Z","modified":"2022-04-05T00:11:24.838Z","7.1.0":"2020-12-29T09:08:31.784Z"},"maintainers":[{"email":"m.sanfabian@cognifit.com","name":"martincognifit"},{"email":"d.olivares@cognifit.com","name":"daniolivarescognifit"},{"email":"p.gutierrez@cognifit.com","name":"pgutierrez_cf"}],"description":"CogniFit's fork of cordova-plugin-marketingcloudsdk\nA Cordova Plugin to access the native Salesforce Marketing Cloud MobilePush SDKs","homepage":"https://github.com/cognifit/MC-Cordova-Plugin#readme","keywords":["ecosystem:cordova","cordova-android","cordova-ios","salesforce","mobilepush","marketingcloud","marketingcloudsdk"],"repository":{"type":"git","url":"git+https://github.com/cognifit/MC-Cordova-Plugin.git"},"author":{"name":"Salesforce Marketing Cloud"},"bugs":{"url":"https://github.com/cognifit/MC-Cordova-Plugin/issues"},"license":"BSD-3-Clause","readme":"# Salesforce Marketing Cloud Cordova Plugin\n\nUse this plugin to implement the Marketing Cloud MobilePush SDK for your [iOS](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/) and [Android](http://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/) applications.\n\n## Release Notes\n\nRelease notes for the plugin can be found [here](CHANGELOG.md)\n\n## Installation\n\n#### 1. Add plugin to your application via [npm](https://www.npmjs.com/package/cordova-plugin-marketingcloudsdk)\n\n```shell\ncordova plugin add cordova-plugin-marketingcloudsdk\n```\n\n**Required for iOS**\n\nYou must have [Cocoapods](https://cocoapods.org/) installed for the iOS platform integration.  Execute the following commands from terminal to install:\n```shell\nsudo gem install cocoapods\npod repo update\n```\n\n#### 2. Modify your application's `config.xml` to configure the plugin <a name=\"config\"></a>\n\n```xml\n<!-- Required -->\n<preference name=\"com.salesforce.marketingcloud.app_id\" value=\"{Marketing Cloud application id}\" />\n<preference name=\"com.salesforce.marketingcloud.access_token\" value=\"{Marketing Cloud access token}\" />\n<preference name=\"com.salesforce.marketingcloud.tenant_specific_endpoint\" value=\"{URL retrieved from Marketing Cloud adminstration page}\" />\n\n<!-- Required - Android Only -->\n<platform name=\"android\">\n  <preference name=\"com.salesforce.marketingcloud.notification_small_icon\" value=\"ic_notification\" />\n</platform>\n\n<!-- Optional -->\n<preference name=\"com.salesforce.marketingcloud.analytics\" value=\"{true|false}\" />\n<preference name=\"com.salesforce.marketingcloud.delay_registration_until_contact_key_is_set\" value=\"{true|false}\" />\n```\n\n#### 3. Provide FCM credentials\n\nTo enable push support for the Android platform you will need to include the google-services.json file.  \n\n1. Download the file from your application's [Firebase console](https://console.firebase.google.com/) and place it in your project's root folder.  \n2. Add following to Android element in your `config.xml`:\n\n```xml\n<platform name=\"android\">\n  <resource-file src=\"google-services.json\" target=\"app/google-services.json\" />\n</platform>\n```\n\n#### 4. Enable iOS Push\n\nFollow [these instructions](./ios_push.md) to enable push for iOS.\n\n## API Reference <a name=\"reference\"></a>\n\n\n* [MCCordovaPlugin](#module_MCCordovaPlugin)\n    * _static_\n        * [.isPushEnabled(successCallback, [errorCallback])](#module_MCCordovaPlugin.isPushEnabled)\n        * [.requestPushPermission(successCallback, [errorCallback])](#module_MCCordovaPlugin.requestPushPermission)\n        * [.getPushNotificationSettings(successCallback, [errorCallback])](#module_MCCordovaPlugin.getPushNotificationSettings)\n        * [.enablePush([successCallback], [errorCallback])](#module_MCCordovaPlugin.enablePush)\n        * [.disablePush([successCallback], [errorCallback])](#module_MCCordovaPlugin.disablePush)\n        * [.getSystemToken(successCallback, [errorCallback])](#module_MCCordovaPlugin.getSystemToken)\n        * [.getAttributes(successCallback, [errorCallback])](#module_MCCordovaPlugin.getAttributes)\n        * [.setAttribute(key, value, [successCallback], [errorCallback])](#module_MCCordovaPlugin.setAttribute)\n        * [.clearAttribute(key, [successCallback], [errorCallback])](#module_MCCordovaPlugin.clearAttribute)\n        * [.addTag(tag, [successCallback], [errorCallback])](#module_MCCordovaPlugin.addTag)\n        * [.removeTag(tag, [successCallback], [errorCallback])](#module_MCCordovaPlugin.removeTag)\n        * [.getTags(successCallback, [errorCallback])](#module_MCCordovaPlugin.getTags)\n        * [.setContactKey(contactKey, [successCallback], [errorCallback])](#module_MCCordovaPlugin.setContactKey)\n        * [.getContactKey(successCallback, [errorCallback])](#module_MCCordovaPlugin.getContactKey)\n        * [.enableVerboseLogging([successCallback], [errorCallback])](#module_MCCordovaPlugin.enableVerboseLogging)\n        * [.disableVerboseLogging([successCallback], [errorCallback])](#module_MCCordovaPlugin.disableVerboseLogging)\n        * [.setOnNotificationOpenedListener(notificationOpenedListener)](#module_MCCordovaPlugin.setOnNotificationOpenedListener)\n        * [.setOnUrlActionListener(urlActionListener)](#module_MCCordovaPlugin.setOnUrlActionListener)\n        * [.logSdkState([successCallback], [errorCallback])](#module_MCCordovaPlugin.logSdkState)\n    * _inner_\n        * [~notificationOpenedCallback](#module_MCCordovaPlugin..notificationOpenedCallback) : <code>function</code>\n        * [~urlActionCallback](#module_MCCordovaPlugin..urlActionCallback) : <code>function</code>\n\n\n---\n\n<a name=\"module_MCCordovaPlugin\"></a>\n\n## MCCordovaPlugin\n<a name=\"module_MCCordovaPlugin.isPushEnabled\"></a>\n\n### MCCordovaPlugin.isPushEnabled(successCallback, [errorCallback])\nThe current state of the pushEnabled flag in the native Marketing Cloud\nSDK.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#isPushEnabled())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_pushEnabled)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.enabled | <code>boolean</code> | Whether push is enabled. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.requestPushPermission\"></a>\n\n### MCCordovaPlugin.requestPushPermission(successCallback, [errorCallback])\nRequests iOS/iPadOS to ask the user to enable push notifications for\nthe App. The user will be prompted only once.\n\n**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>  \n**See**\n\n- [iOS Docs](https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/1649527-requestauthorizationwithoptions)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.granted | <code>boolean</code> | Whether permission to receive push notifications was granted. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.getPushNotificationSettings\"></a>\n\n### MCCordovaPlugin.getPushNotificationSettings(successCallback, [errorCallback])\nGets the notification settings for this app. Applies only to iOS/iPadOS.\n\n**Kind**: static method of <code>[MCCordovaPlugin](#module_MCCordovaPlugin)</code>  \n**See**\n\n- [iOS Docs](https://developer.apple.com/documentation/usernotifications/unauthorizationstatus)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.status | <code>string</code> | One of the following values: 'not-determined', 'denied', 'authorized', 'provisional'. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.enablePush\"></a>\n\n### MCCordovaPlugin.enablePush([successCallback], [errorCallback])\nEnables push messaging in the native Marketing Cloud SDK.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#enablePush())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_setPushEnabled:)\n\n\n| Param | Type |\n| --- | --- |\n| [successCallback] | <code>function</code> | \n| [errorCallback] | <code>function</code> | \n\n<a name=\"module_MCCordovaPlugin.disablePush\"></a>\n\n### MCCordovaPlugin.disablePush([successCallback], [errorCallback])\nDisables push messaging in the native Marketing Cloud SDK.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#disablePush())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_setPushEnabled:)\n\n\n| Param | Type |\n| --- | --- |\n| [successCallback] | <code>function</code> | \n| [errorCallback] | <code>function</code> | \n\n<a name=\"module_MCCordovaPlugin.getSystemToken\"></a>\n\n### MCCordovaPlugin.getSystemToken(successCallback, [errorCallback])\nReturns the token used by the Marketing Cloud to send push messages to\nthe device.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/messages/push/PushMessageManager.html#getPushToken())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_deviceToken)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.token | <code>string</code> | The token used for push     messaging. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.getAttributes\"></a>\n\n### MCCordovaPlugin.getAttributes(successCallback, [errorCallback])\nReturns the maps of attributes set in the registration.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.html#getAttributes())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_attributes)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.attributes | <code>Object.&lt;string, string&gt;</code> | The     key/value map of attributes set in the registration. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.setAttribute\"></a>\n\n### MCCordovaPlugin.setAttribute(key, value, [successCallback], [errorCallback])\nSets the value of an attribute in the registration.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#setAttribute(java.lang.String,%20java.lang.String))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_setAttributeNamed:value:)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| key | <code>string</code> | The name of the attribute to be set in the     registration. |\n| value | <code>string</code> | The value of the `key` attribute to be set in     the registration. |\n| [successCallback] | <code>function</code> |  |\n| successCallback.saved | <code>boolean</code> | Whether the attribute value was     set in the registration. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.clearAttribute\"></a>\n\n### MCCordovaPlugin.clearAttribute(key, [successCallback], [errorCallback])\nClears the value of an attribute in the registration.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#clearAttribute(java.lang.String))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_clearAttributeNamed:)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| key | <code>string</code> | The name of the attribute whose value should be     cleared from the registration. |\n| [successCallback] | <code>function</code> |  |\n| successCallback.saved | <code>boolean</code> | Whether the value of the `key`     attribute was cleared from the registration. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.addTag\"></a>\n\n### MCCordovaPlugin.addTag(tag, [successCallback], [errorCallback])\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#addTag(java.lang.String))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_addTag:)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| tag | <code>string</code> | The tag to be added to the list of tags in the     registration. |\n| [successCallback] | <code>function</code> |  |\n| successCallback.saved | <code>boolean</code> | Whether the value passed in for     `tag` was saved in the registration. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.removeTag\"></a>\n\n### MCCordovaPlugin.removeTag(tag, [successCallback], [errorCallback])\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#removeTag(java.lang.String))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_removeTag:)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| tag | <code>string</code> | The tag to be removed from the list of tags in the     registration. |\n| [successCallback] | <code>function</code> |  |\n| successCallback.saved | <code>boolean</code> | Whether the value passed in for     `tag` was cleared from the registration. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.getTags\"></a>\n\n### MCCordovaPlugin.getTags(successCallback, [errorCallback])\nReturns the tags currently set on the device.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.html#getTags())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_tags)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.tags | <code>Array.&lt;string&gt;</code> | The array of tags currently set     in the native SDK. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.setContactKey\"></a>\n\n### MCCordovaPlugin.setContactKey(contactKey, [successCallback], [errorCallback])\nSets the contact key for the device's user.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.Editor.html#setContactKey(java.lang.String))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_setContactKey:)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| contactKey | <code>string</code> | The value to be set as the contact key of     the device's user. |\n| [successCallback] | <code>function</code> |  |\n| successCallback.saved | <code>boolean</code> | Whether the value passed in for     `contactKey` was saved in the registration. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.getContactKey\"></a>\n\n### MCCordovaPlugin.getContactKey(successCallback, [errorCallback])\nReturns the contact key currently set on the device.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/registration/RegistrationManager.html#getContactKey())\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_contactKey)\n\n\n| Param | Type | Description |\n| --- | --- | --- |\n| successCallback | <code>function</code> |  |\n| successCallback.contactKey | <code>string</code> | The current contact key. |\n| [errorCallback] | <code>function</code> |  |\n\n<a name=\"module_MCCordovaPlugin.enableVerboseLogging\"></a>\n\n### MCCordovaPlugin.enableVerboseLogging([successCallback], [errorCallback])\nEnables verbose logging within the native Marketing Cloud SDK.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/MarketingCloudSdk.html#setLogLevel(int))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_setDebugLoggingEnabled:)\n\n\n| Param | Type |\n| --- | --- |\n| [successCallback] | <code>function</code> | \n| [errorCallback] | <code>function</code> | \n\n<a name=\"module_MCCordovaPlugin.disableVerboseLogging\"></a>\n\n### MCCordovaPlugin.disableVerboseLogging([successCallback], [errorCallback])\nDisables verbose logging within the native Marketing Cloud SDK.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**See**\n\n- [Android Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-Android/javadocs/6.0/reference/com/salesforce/marketingcloud/MarketingCloudSdk.html#setLogLevel(int))\n- [iOS Docs](https://salesforce-marketingcloud.github.io/MarketingCloudSDK-iOS/appledoc/Classes/MarketingCloudSDK.html#//api/name/sfmc_setDebugLoggingEnabled:)\n\n\n| Param | Type |\n| --- | --- |\n| [successCallback] | <code>function</code> | \n| [errorCallback] | <code>function</code> | \n\n<a name=\"module_MCCordovaPlugin.setOnNotificationOpenedListener\"></a>\n\n### MCCordovaPlugin.setOnNotificationOpenedListener(notificationOpenedListener)\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**Since**: 6.1.0  \n\n| Param | Type |\n| --- | --- |\n| notificationOpenedListener | <code>function</code> | \n| notificationOpenedListener.event | <code>MCCordovaPlugin~notificationOpenedCallback</code> | \n\n<a name=\"module_MCCordovaPlugin.setOnUrlActionListener\"></a>\n\n### MCCordovaPlugin.setOnUrlActionListener(urlActionListener)\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**Since**: 6.3.0  \n\n| Param | Type |\n| --- | --- |\n| urlActionListener | <code>function</code> | \n| urlActionListener.event | <code>MCCordovaPlugin~urlActionCallback</code> | \n\n<a name=\"module_MCCordovaPlugin.logSdkState\"></a>\n\n### MCCordovaPlugin.logSdkState([successCallback], [errorCallback])\nInstructs the native SDK to log the SDK state to the native logging system (Logcat for\nAndroid and Xcode/Console.app for iOS).  This content can help diagnose most issues within\nthe SDK and will be requested by the Marketing Cloud support team.\n\n**Kind**: static method of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n**Since**: 6.3.1  \n\n| Param | Type |\n| --- | --- |\n| [successCallback] | <code>function</code> | \n| [errorCallback] | <code>function</code> | \n\n<a name=\"module_MCCordovaPlugin..notificationOpenedCallback\"></a>\n\n### MCCordovaPlugin~notificationOpenedCallback : <code>function</code>\n**Kind**: inner typedef of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| timeStamp | <code>number</code> | Time since epoch when the push message was     opened. |\n| values | <code>Object</code> | The values of the notification message. |\n| values.alert | <code>string</code> | The alert text of the notification     message. |\n| [values.title] | <code>string</code> | The title text of the notification     message. |\n| [values.url] | <code>string</code> | The url associated with the notification     message. This can be either a cloud-page url or an open-direct url. |\n| values.type | <code>string</code> | Indicates the type of notification message.     Possible values: 'cloudPage', 'openDirect' or 'other' |\n\n<a name=\"module_MCCordovaPlugin..urlActionCallback\"></a>\n\n### MCCordovaPlugin~urlActionCallback : <code>function</code>\n**Kind**: inner typedef of [<code>MCCordovaPlugin</code>](#module_MCCordovaPlugin)  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| url | <code>string</code> | The url associated with the action taken by the user. |\n\n---\n\n","readmeFilename":"README.md"}