Recommended: Using the module
The Mobile Locker SDK is available as an ES2015 module:
# Recommended: Install it using yarn (https://yarnpkg.com):
yarn add @mobilelocker/mobilelocker-tracking
# Or install it using npm
npm install --save @mobilelocker/mobilelocker-tracking
Include it in your JS file:
# ES2015:
import mobilelocker from '@mobilelocker/mobilelocker-tracking';
# CommonJS:
const mobilelocker = require('@mobilelocker/mobilelocker-tracking');
Legacy Mode
As of January 2024, legacy mode is no longer available. You must use the module as described above.