MobbID 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.mobbid" is already installed
If you receive a message telling that "com.mobbeel.mobbid" is already installed on the project, please, remove it and reinstall.
MobbIdApi is undefined
If the variable MobbIdApi 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
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.
package com.mobbeel.mobbid.* does not exist
If you are using Capacitor and you see this error, you must ensure that
build.gradlefile is correctly configured. Check capacitor android considerations section for more information.If you are using Cordova, check your Java version.
