Skip to main content

Troubleshooting

  • Failed to fetch plugin … via registry (404 Not Found) when preparing the project
    Check the npm token in .npmrc. If the problem persists, add the plugin by its identifier: cordova plugin add com.mobbeel.mobbsign.
  • com.mobbeel.mobbsign is already installed
    Remove the plugin and install it again.
  • File … already present during a Cordova command
    Remove and add the platform that causes the problem: npx cordova platform rm <platform> && npx cordova platform add <platform> (with Ionic, npx ionic cordova …).
  • Cannot find module 'unorm' on iOS
    Reinstall the iOS platform: npx cordova platform rm ios and npx cordova platform add ios@latest.
  • Cannot set property 'text' of null on Android
    Add the app_name, activity_name and launcher_name strings to platforms/android/app/src/main/res/values/strings.xml.
  • MobbSignAPI is undefined
    Use the plugin after the deviceready event, or after Platform.ready() in Ionic. The plugin does not work when the app runs in a desktop browser.
  • The document is shown but cannot be signed
    Check the license and that mobbsign.key is in the assets folder (Android) or the Resources folder (iOS).
  • Capacitor on iOS: the signing screen does not open
    Add the files of the signing interface to the target of the plugin in Xcode. See Capacitor.

For the strings.xml error, the resources to add are:

platforms/android/app/src/main/res/values/strings.xml
<string name="app_name">MyAppName</string>
<string name="activity_name">activity_name</string>
<string name="launcher_name">launcher_name</string>