bug: cordova-plugin-ionic is blocking device ready event
See original GitHub issueBug Report
I am migrating our app from cordova to capacitor. Generally we managed to limit the cordova plugins to 3:
cordova-plugin-ionic (5.4.4)
cordova-plugin-whitelist (1.3.4)
phonegap-plugin-barcodescanner (8.1.0)
Using cordova-plugin-ionic (5.4.4)
is messing up deviceready event and app cannot be started.
When inspecting the app in Google remote devices the following error is shown.
Uncaught (in promise) String resource ID #0x0
. Similar issue should have been resolved in the plugin repo https://github.com/ionic-team/cordova-plugin-ionic/issues/223
.
Once the plugin is removed the app start functioning as normal.
Capacitor Version
npx cap doctor
output:
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 1.2.1
@capacitor/core: 1.2.1
@capacitor/android: 1.2.1
@capacitor/ios: 1.2.1
Installed Dependencies:
@capacitor/cli 1.2.1
@capacitor/core 1.2.1
@capacitor/ios 1.2.1
@capacitor/android 1.2.1
Affected Platform(s)
- Android
- iOS
- Electron
- Web
Current Behavior
Application cannot be roaded.
Expected Behavior
Application should be launched ans normal. No incompatible plugins are being used.
Sample Code or Sample Application Repo
Reproduction Steps
Inside an capacitor project run in terminal:
cordova plugin add cordova-plugin-ionic --save --variable APP_ID="abcd1234" --variable CHANNEL_NAME="Master" --variable UPDATE_METHOD="background"
ionic build
or npm run build
npx cap sync android
npx cap open android
Run app in simulator or on device. App is not loaded correctly.
Other Technical Details
npm --version
output:
6.9.0
node --version
output:
v10.16.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
I’ve just remove old plugin
cordova-plugin-ionic
and problem goneThanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.