Installation
Cordova Inform SDK Wrapper
Creating a Cordova project using the ValidicMobile plugin involves the following steps. Additional Cordova commands and options are available. Consult Cordova documentation for additional information.
Authentication with Artifactory
The Validic Inform Cordova plugins are hosted on a private Artifactory npm registry. You must configure credentials before installing any plugins.
1. Generate an npm Token
- Log into Artifactory
- Click the user icon (top right) and select Set Me Up
- Select npm as your package manager
- Choose the
mobile-npm-releaserepository - Enter your password and click Generate Token & Create Instructions
2. Configure .npmrc
.npmrcAdd the following to your project's .npmrc file (or ~/.npmrc for global configuration):
@validic-mobile:registry=https://validic.jfrog.io/artifactory/api/npm/mobile-npm-release/
//validic.jfrog.io/artifactory/api/npm/mobile-npm-release/:_authToken=<YOUR_TOKEN>
Replace <YOUR_TOKEN> with the token generated in the previous step.
3. Install Plugins
Once credentials are configured, install plugins using npm:
npm install @validic-mobile/cordova-inform-core --save
cordova plugin add @validic-mobile/cordova-inform-coreThen add any data source plugins your app requires (e.g., @validic-mobile/cordova-inform-ble, @validic-mobile/cordova-inform-healthkit).
Updated 22 days ago
