MobbScan Cordova: Troubleshooting
Cordova
"File xxx already present" during some Cordova command
Remove and add the platform that is causing the problem:
$ npx cordova platform rm <platform> && npx cordova platform add <platform>
$ npx ionic cordova platform rm <platform> && npx ionic cordova platform add <platform>
"com.mobbeel.mobbscan" is already installed
If you receive a message telling that "com.mobbeel.mobbscan" is already installed on the project, please, remove it and reinstall.
MobbScanAPI is undefined
If the variable MobbScanAPI is not available in the global context, ensure the following:
- That the
devicereadyevent has been triggered. - The previous point is specially important when the plugin is being used in Ionic, where the event could be notified using the
Platform.readymethod. - The plugin will not load if your Ionic project is being run in an internet browser.
Android
Attribute application@allowBackup value=(false) from AndroidManifest.xml [...] is also present at [:mobb...]
Ensure that android:allowBackup is set to true in your AndroidManifest.xml:
<application android:allowBackup=“true” />
Android manifest incompatibilities
If you see a warning of this type during the compilation or launch app process as a result of merging Android manifest, you can solve these errors looking for duplicates permissions or attributes on the manifest. The manifest is located at: root-project-folder/platforms/android/app/src/main/AndroidManifest.xml.
