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

  1. Log into Artifactory
  2. Click the user icon (top right) and select Set Me Up
  3. Select npm as your package manager
  4. Choose the mobile-npm-release repository
  5. Enter your password and click Generate Token & Create Instructions

2. Configure .npmrc

Add 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-core

Then add any data source plugins your app requires (e.g., @validic-mobile/cordova-inform-ble, @validic-mobile/cordova-inform-healthkit).