Skip to main content

Installation

The MobbSign plugin wraps the native Android and iOS SDKs. It is distributed through npm as @mobbeel/mobbsign-cordova-plugin and works with Cordova projects and with Ionic projects that use Cordova, with Angular or React. For Capacitor, see Capacitor.

Requirements​

Cordova
7 or laterWith Cordova 10 or later, Node.js 16 and npm 7 or later.
Tools
wgetunzipThe installation downloads the native SDKs.
Development OS
macOS or LinuxOn Windows, use the Windows Subsystem for Linux.
npm token
Access token for the Mobbeel packagesProvided by Mobbeel. Not related to the MobbSign license.
License
License keyBound to your application. Provided by Mobbeel.

1. Configure the npm token​

Add the token to the .npmrc file in the root of your project (create the file if it does not exist):

.npmrc
//registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN

Do not commit the token: add .npmrc to .gitignore, or read the token from an environment variable in your CI pipeline.

2. Declare the plugin​

Add the plugin to the config.xml file of your project:

config.xml
<plugin name="com.mobbeel.mobbsign" spec="@mobbeel/mobbsign-cordova-plugin@^3.5.0" />

With Cordova 9 or earlier, prefix the spec with npm:: spec="npm:@mobbeel/mobbsign-cordova-plugin@^3.5.0".

3. Prepare the project​

Prepare the project. This step downloads the Android and iOS SDKs and may take several minutes:

npx cordova prepare

4. Check the installation​

npx cordova plugin list

The list includes the MobbSign plugin (your version may differ):

com.mobbeel.mobbsign 3.5.0 "MobbSign"

5. Add the encryption key​

Copy the public key of your project, mobbsign.key, to the assets folder of the Android platform and to the Resources folder of the iOS platform. The default signing screen loads it from there.

If the installation fails, see Troubleshooting.

Next step​

Initialise the plugin and sign a document in the Quick start.