Use the Source!
The Mobile Locker SDK is available as an ES2015 module:
# Recommended: Install it using yarn (https://yarnpkg.com): yarn add mobilelocker-tracking # Or install it using npm npm install --save mobilelocker-tracking
Include it in your JS file:
# ES2015: import mobilelocker from 'mobilelocker-tracking'; # CommonJS: const mobilelocker = require('mobilelocker-tracking');
If you cannot use the module, download and use the legacy.js version instead. Please note that the legacy version does not have the same functionality as the module version and we do not support it anymore. So you should really use the module instead!