Cordova.js is not available while working in the chrome state

I am an ionic noob. I created an application using ionic-cli and am trying to start the application. I get a warning below in chrome (trying to add an endless session to the gallery)

Native: I tried calling Splashscreen.hide, but Cordoba is not available. Be sure to enable cordova.js or run in the device / simulator

How to enable cordova.js only with chrome testing

+5
source share
1 answer

Cordoba is enabled only after the application is created to run on the device, and therefore it is not available when testing in the browser. This, of course, means that plugins relying on Cordoba do not work either. This is a limitation of testing in the browser. You can ignore the error.

To test all the functionality that you should test in an emulator or real device.

+8
source

Source: https://habr.com/ru/post/1266259/


All Articles