Native: tried calling StatusBar.styleDefault, but Cordova is not available.
Is this in Ionic serve?
If you see in Supported platforms, works only on Android, iOS and Windows. You can not use it in browsers (ionic serve or run browser).
the cordova.js file is only included when you are running natively on a device, not when running in a browser.