When running the app through Capacitors live reload, the app does not work at all, not on emulators and not on real devices. The splash screen appears, but is never dismissed, and the inspector console has the error: Cannot read property 'triggerEvent' of undefined.
I have tried adding android:usesCleartextTraffic="true" to AndroidManifest.xml, but no luck.
When building and running in Android Studio, the app works as normal.
Has anyone seen this before and know how to resolve it?
This has never worked, over multiple versions of Ionic and Capacitor, or different versions of Android. Works fine on iOS, but Android it doesnât seem to work at all.
Make sure the plugin is installed and appears in the package.json file.
Run npx cap sync android to sync your project.
Use the âSync Project with Gradle Filesâ button in Android Studio. This will re-sync your native Android code to include the new plugin code and should allow use of your new plugin. source (Troubleshooting Android Issues | Capacitor Documentation)
This issue still persists with Ionic CLI 7.1.1, native-run 2.0.0, Capacitor Android 5.5.1, same error message as always. Is there no way to fix this, Ionic?