{"_id":"@adobe/cordova-acpuserprofile","_rev":"93-e6db67faee9a9f67437c3686827b6d29","name":"@adobe/cordova-acpuserprofile","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@adobe/cordova-acpuserprofile","version":"0.0.1","keywords":["ecosystem:cordova","adobe","user profile","acpuserprofile","marketing","cordova-android","cordova-ios"],"author":{"name":"Adobe"},"license":"Apache-2.0","_id":"@adobe/cordova-acpuserprofile@0.0.1","maintainers":[{"name":"rymorale","email":"ryanmorales@gmail.com"},{"name":"amadt5","email":"amadt5@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"mirea","email":"mirea@adobe.com"},{"name":"dgrossen","email":"dangrossen@gmail.com"},{"name":"tmathern","email":"mathern@adobe.com"},{"name":"dstrangio","email":"deirdra.strangio@gmail.com"},{"name":"cjchapman","email":"cchapman@adobe.com"},{"name":"addb","email":"arjun.d.bhadra@gmail.com"},{"name":"jdelbick","email":"jamie.delbick@gmail.com"},{"name":"sbenedicadb","email":"sbenedic@adobe.com"},{"name":"surajpindoria","email":"pindoria.suraj@gmail.com"},{"name":"jasonwaters","email":"watersj@gmail.com"},{"name":"alvarorahul","email":"alvarorahul@gmail.com"},{"name":"choffmann-adobe","email":"choffman@adobe.com"},{"name":"bgaurav","email":"FINDGAURAV@GMAIL.COM"},{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"czerneck","email":"czerneck@adobe.com"},{"name":"sangeetha.krishnan","email":"sangeetha5491@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dompuiu","email":"dompuiu@gmail.com"},{"name":"bglowacki","email":"bartosz.glow@gmail.com"},{"name":"ronen","email":"ronen@barzel.org"},{"name":"fmeschbe","email":"fmeschbe@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"msagolj","email":"msagolj@adobe.com"},{"name":"richardhand","email":"pid90611@adobe.com"},{"name":"jckautzmann","email":"jkautzma@adobe.com"},{"name":"andreea_dracea","email":"andreeadracea@yahoo.com"},{"name":"bpauli","email":"mail@bpauli.de"},{"name":"vladbailescu","email":"vlad@bailescu.ro"},{"name":"mfrisbey","email":"mark_f79@hotmail.com"},{"name":"himar","email":"himar@adobe.com"},{"name":"bbythewa","email":"bbythewa@adobe.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"jianliao79","email":"jian.liao@gmail.com"},{"name":"ibaratz","email":"ibaratz@adobe.com"},{"name":"alexkli","email":"alexander@klimetschek.de"},{"name":"meryllblanchet","email":"meryll@adobeio.com"},{"name":"moritzraho","email":"raho.mr@gmail.com"},{"name":"justinedelson","email":"justin@justinedelson.com"},{"name":"icaraps","email":"icaraps@hotmail.com"},{"name":"ashryan","email":"sayhi@ashryan.io"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"nporter-adbe","email":"nporter@adobe.com"},{"name":"aaronius","email":"aaron@aaronhardy.com"},{"name":"hirenoble","email":"hirenanandshah@outlook.com"},{"name":"benjamind","email":"ben@delarre.net"},{"name":"yoshikinoko","email":"yoshikinoko@gmail.com"},{"name":"goya","email":"brettrudd@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"purplecabbage","email":"purplecabbage@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"kerrishotts","email":"kerrishotts@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"aemsites","email":"meyer@adobe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"jfkhoury","email":"jfkhoury@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"target-admin","email":"ciocanu@adobe.com"},{"name":"adobe-behance","email":"sedunn@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"}],"homepage":"https://github.com/adobe/cordova-acpuserprofile#readme","bugs":{"url":"https://github.com/adobe/cordova-acpuserprofile/issues"},"dist":{"shasum":"ff841a3a5f66d54548923545656ba7d00b59605b","tarball":"https://registry.npmjs.org/@adobe/cordova-acpuserprofile/-/cordova-acpuserprofile-0.0.1.tgz","fileCount":17,"integrity":"sha512-uXxeQeUj6u8KHp0YRg+0ouPUW6lv20IKqXkRh6msxmFIr7huLFgEjNq+qsfJiebHOdTJ/YOuD4XDEGTI+GFOdw==","signatures":[{"sig":"MEUCIQDVoHBHFsvT3kiRJ3gPtOG1Vtpow15c/O+7BRKHawIcBwIgCRuaUu3VYFK2aildrrvjU32+4r/Y6D0BO5YVnYfwFkE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58367,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1v69CRA9TVsSAnZWagAARUsP/3ptg27lFBqgOMbDJvUg\nkTthXbVSHrj6le4DOibES7ZBJnAuDghGeYXi8paynvuUjXBrxReVB1lBZR9F\nK6nM0en3O04y9faAuC09CdBiRziCSgTjbJy1MDz7YU5yqrcxiptejiH9NntL\nTyHcj5l78hvOsmqcno/OuN4cUmiCSNqSt9LcQhMcaB4EQF2HHRdVreEllIEJ\nM16lD/Z/2ak7gRHK/lPKAi8pw9uDqFJlWiuHC8XhtrLQls8KkHdq586gNXf+\ndIDXr04MVHG7v0j2+qIGb3MFQ5/KWBkMRWSarglgTlW1k5jEikVZvjmKQHLM\n0zRwCuS8gptWqRkTSMowufvOR/JhuyioGdumuMKrMVnWQoM124uUhtyKgLfu\n7lDxopGHX+fr5EmGrbul5rcFydR5jZ6Z0uMC8mi1kOHbwLY8U3CHRJrhzo3g\nfpMJx+ZQAY/m7/XEQMZQV458eUu75BVp9L8Ta9kHEexlAvHHwJRNYjIYGWyE\nlBLz6RMo8sRyzVpG9FjYNbXZu4jRGzlpoZBgosOBWuDO+y/vZdf2VqqVsjsS\nA9m5wlAmQaEOekUtQbcd4fGuFD/PNoQtRHMcwWSg/9giFX8FLb+8UzlmcBqM\nbK0cRb2lHJ4MEKxhuLtCtwjQ3gTVNUWAoNBxNMw1D49zJahwk8k/c/LWm8im\nIh4e\r\n=UiOw\r\n-----END PGP SIGNATURE-----\r\n"},"cordova":{"id":"cordova-acpuserprofile","platforms":["android","ios"]},"gitHead":"b3c2fb99b998b4146fa08b48ca5dccd6fb8bf98a","_npmUser":{"name":"rymorale","email":"ryanmorales@gmail.com"},"deprecated":"Package no longer supported (underlying SDK deprecated)","repository":{"url":"git+https://github.com/adobe/cordova-acpuserprofile.git","type":"git"},"_npmVersion":"6.12.1","description":"Adobe Experience Platform - User Profile plugin for Cordova apps.","directories":{},"_nodeVersion":"13.1.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-acpuserprofile_0.0.1_1592420384479_0.5326090601524043","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-06-17T18:59:44.222Z","modified":"2026-10-01T01:32:51.777Z","0.0.1":"2020-06-17T18:59:44.593Z"},"bugs":{"url":"https://github.com/adobe/cordova-acpuserprofile/issues"},"author":{"name":"Adobe"},"license":"Apache-2.0","homepage":"https://github.com/adobe/cordova-acpuserprofile#readme","keywords":["ecosystem:cordova","adobe","user profile","acpuserprofile","marketing","cordova-android","cordova-ios"],"repository":{"url":"git+https://github.com/adobe/cordova-acpuserprofile.git","type":"git"},"description":"Adobe Experience Platform - User Profile plugin for Cordova apps.","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"\n# Adobe Experience Platform - User Profile plugin for Cordova apps\n\n[![CI](https://github.com/adobe/cordova-acpuserprofile/workflows/CI/badge.svg)](https://github.com/adobe/cordova-acpuserprofile/actions)\n[![npm](https://img.shields.io/npm/v/@adobe/cordova-acpuserprofile)](https://www.npmjs.com/package/@adobe/cordova-acpuserprofile)\n[![GitHub](https://img.shields.io/github/license/adobe/cordova-acpuserprofile)](https://github.com/adobe/cordova-acpuserprofile/blob/master/LICENSE)\n\n- [Prerequisites](#prerequisites)  \n- [Installation](#installation)\n- [Usage](#usage)  \n- [Running Tests](#running-tests)\n- [Sample App](#sample-app)\n- [Additional Cordova Plugins](#additional-cordova-plugins)\n- [Contributing](#contributing)  \n- [Licensing](#licensing)  \n\n## Prerequisites  \n\nCordova is distributed via [Node Package Management](https://www.npmjs.com/) (aka - `npm`).  \n\nIn order to install and build Cordova applications you will need to have `Node.js` installed. [Install Node.js](https://nodejs.org/en/).  \n\nOnce Node.js is installed, you can install the Cordova framework from terminal:  \n\n```  \nsudo npm install -g cordova  \n```\n\n## Installation\n\nTo start using the User Profile plugin for Cordova, navigate to the directory of your Cordova app and install the plugin:\n```\ncordova plugin add https://github.com/adobe/cordova-acpuserprofile.git\n```\nCheck out the documentation for help with APIs\n\n## Usage\n\n##### Getting the SDK version:\n```js\nACPUserProfile.extensionVersion(function(version){  \n    console.log(version);\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Registering the extension with ACPCore:  \n\n > Note: It is required to initialize the SDK via native code inside your AppDelegate and MainApplication for iOS and Android respectively. For more information see how to initialize [Core](https://aep-sdks.gitbook.io/docs/getting-started/initialize-the-sdk).  \n  \n  ##### **iOS**  \n```objective-c\n#import \"ACPUserProfile.h\"  \n[ACPUserProfile registerExtension];  \n```\n  ##### **Android:**  \n```java\nimport com.adobe.marketing.mobile.UserProfile;  \nUserProfile.registerExtension();\n```\n##### Get user profile attributes which match the provided keys:\n```js\nvar attributeNames = new Array();\nattributeNames.push(\"attributeName1\");\nattributeNames.push(\"attributeName2\");\nattributeNames.push(\"attributeName3\");\nACPUserProfile.getUserAttributes(attributeNames, function(response) {  \n    console.log(\"Matching user profile attributes: \", response);\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Remove user profile attribute if it exists:\n```js\nACPUserProfile.removeUserAttribute(\"attributeName\",function(response) {  \n    console.log(\"User Profile attribute removed.\", response);\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Remove provided user profile attributes if they exist:\n```js\nvar attributeNames = new Array();\nattributeNames.push(\"attributeName1\");\nattributeNames.push(\"attributeName2\");\nattributeNames.push(\"attributeName3\");\nACPUserProfile.removeUserAttributes(attributeNames, function(response) {  \n    console.log(\"User Profile attributes removed.\", response);\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Set a single user profile attribute:\n```js\nACPUserProfile.updateUserAttribute(\"age\", 30, function(response){  \n    console.log(\"Successfully added user profile key and value.\", response);  \n}, function(error){  \n    console.log(error);  \n});  \n```\n##### Set multiple user profile attributes:\n```js\nvar firstName = \"john\";\nvar age = 40;\nvar state = \"California\";\nvar phoneNumber = \"555-555-5555\";\nvar vehicles = new Array();\nvehicles.push(\"car\");\nvehicles.push(\"boat\");\nvehicles.push(\"airplane\");\nvehicles.push(\"motorcycle\");\nvar colors = {\"color1\":\"red\", \"color2\":\"blue\", \"color3\":\"green\"}\nvar attributeMap = {\"first name\":firstName, \"age\":age, \"state\":state, \"phone number\":phoneNumber, \"vehicles\":vehicles, \"colors\":colors};\nACPUserProfile.updateUserAttributes(attributeMap, function(response) {  \n    console.log(\"Successfully added user profile key(s) and value(s).\");\n}, function(error){  \n    console.log(error);  \n});\n```\n## Running Tests\nInstall cordova-paramedic `https://github.com/apache/cordova-paramedic`\n```bash\nnpm install -g cordova-paramedic\n```\n\nRun the tests\n```\ncordova-paramedic --platform ios --plugin . --verbose\n```\n```\ncordova-paramedic --platform android --plugin . --verbose\n```\n\n## Sample App\n\nA Cordova app for testing the Adobe SDK plugins is located at [https://github.com/adobe/cordova-acpsample](https://github.com/adobe/cordova-acpsample). The app is configured for both iOS and Android platforms.  \n\n## Additional Cordova Plugins\n\nBelow is a list of additional Cordova plugins from the AEP SDK suite:\n\n| Extension | GitHub | npm |\n|-----------|--------|-----|\n| Core SDK | https://github.com/adobe/cordova-acpcore | [![npm](https://img.shields.io/npm/v/@adobe/cordova-acpcore)](https://www.npmjs.com/package/@adobe/cordova-acpcore)\n| Adobe Analytics | https://github.com/adobe/cordova-acpanalytics | [![npm](https://img.shields.io/npm/v/@adobe/cordova-acpanalytics)](https://www.npmjs.com/package/@adobe/cordova-acpanalytics)\n| Places | https://github.com/adobe/cordova-acpplaces | [![npm](https://img.shields.io/npm/v/@adobe/cordova-acpplaces)](https://www.npmjs.com/package/@adobe/cordova-acpplaces)\n| Project Griffon (Beta) | https://github.com/adobe/cordova-acpgriffon | [![npm](https://img.shields.io/npm/v/@adobe/cordova-acpgriffon)](https://www.npmjs.com/package/@adobe/cordova-acpgriffon)\n\n## Contributing\nLooking to contribute to this project? Please review our [Contributing guidelines](.github/CONTRIBUTING.md) prior to opening a pull request.\n\nWe look forward to working with you!\n\n## Licensing  \nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","readmeFilename":"README.md"}