Android/IOS emulator does not have Cordova built in

Hi, so I’ve got an Ionic 3 app which has a native camera plugin and onesignal plugin as well for notifications.

The native camera plugin works fine in Ionic View or DevApp, and onesignal works when build it to an APK and run it natively on my Android phone.

However, when I use an emulator to run it, even on IOS, it comes up with cordova_not_available. And even the cameras don’t work. i run the command

ionic cordova run android or ionic cordova run ios

Emulator shows up but the issue is that cordova doesn’t seem to be compiled in. Thus causing cordova plugins to fail.

What can possible be the issue? I’ve removed all the plugins and android/ios platform, re-installed an still the same.

It’s kind of difficult to develop the OneSignal notification when I can’t run it with the emulator.

Anyone who has come across this, please advice.

1 Like