diyDevApp icon indicating copy to clipboard operation
diyDevApp copied to clipboard

Cordova is not available

Open arielhernandezmusa opened this issue 6 years ago • 4 comments

I start a clean ionic project, use ionic serve -c --no-open and console show this when open de app

console.warn: Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

arielhernandezmusa avatar May 01 '18 20:05 arielhernandezmusa

Hi can you be a bit more specific on what you are doing? Did you build the diyDevApp using ionic cordova build and deployed it to a device? And on a dev machine ran ionic serve with a different app? Tom

Tommertom avatar May 02 '18 05:05 Tommertom

Sure, I clone the repo, buil the app with ionic 3.20.0 android platform 6.3.0 and install it on my phone with android 6.1.0, then create a new ionic tabs projects and serve it with ionic serve -c --no-open, then open the app and it discover mybdev server, when tap on my ip my new ionic app opens, but on console warn that cordova it is not available.

arielhernandezmusa avatar May 02 '18 11:05 arielhernandezmusa

Follow that step it work previewly

arielhernandezmusa avatar May 02 '18 11:05 arielhernandezmusa

What do u mean by that? Did it used to work? A plain starter app in ionic does work with me. So I am having troubles replaying your scenario

Tommertom avatar May 06 '18 05:05 Tommertom