Capacitor
Since version 3.5.0, the MobbSign Cordova plugin also works in Capacitor projects.
1. Configure the npm token
Add the token provided by Mobbeel to the .npmrc file in the root of your project:
.npmrc
//registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN
2. Install the plugin
Install the plugin. This step downloads the Android and iOS SDKs and may take several minutes:
npm install @mobbeel/mobbsign-cordova-plugin@^3.5.0
3. Sync the native projects
npx cap sync
If your app does not have its native projects yet, add them first:
- Android
- iOS
npx cap add android
npx cap add ios
4. iOS: add the signing interface
Capacitor does not run Cordova hooks, so the native signing interface of the plugin is not added to the Xcode project automatically. Locate the interface files in the folder of the plugin in your Xcode project and add them to the same target as the rest of the plugin files.
With this, the project is ready. Continue with the Quick start.