-
Notifications
You must be signed in to change notification settings - Fork 684
Closed
Labels
Description
After updating to CLI 3.8.0, running in Android device using the command ionic cordova run android -lcs, Cordova plugins does not work. The log shows the following message:
console.warn: Native: tried calling Camera.getPicture, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
Seems like the issue is when you are trying to run with the livereaload flag. I've tried the following commands:
- ionic cordova run android --livereload
- ionic cordova run android -lcs
Only command working is ionic cordova run android.
Plugins tested:
- Ionic native camera
- Ionic native geolocation
Steps to reproduce:
- Update to CLI 3.8.0
- Run your application on Android by using livereload flag
- Test Cordova function on device.
Ionic info
@ionic/cli-utils : 1.8.0
ionic (Ionic CLI) : 3.8.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0
System:
Node : v8.2.1
npm : 5.3.0
OS : macOS Sierra
jayserdny