Problem with native


#1

when i am creating my app ,it did not work properly and in console

(index):15 The key “viewport-fit” is not recognized and ignored.
core.js:3562 Angular is running in the development mode. Call enableProdMode() to enable the production mode.
util.js:60 Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
util.js:60 Native: tried calling SplashScreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
cordovaWarn @ util.js:60

is shown.
help me please.


#2

When running in a browser on your computer, those Ionic Native errors will be present. Ionic Native usually cannot run on the desktop. You can use the Ionic Native Mocks (https://chrisgriffith.wordpress.com/2017/07/05/announcing-ionic-native-mocks/) to stub out those calls, so you not see those errors.

As for the dev mode, the --prod flag would need to be added to the ionic serve, but typically you don’t include that for ease of debugging and compiling.


#3

thank you very much for reply