I created an app using ionic-cli and is trying to run the app. I get below warning in chrome (trying to add infinite-schroll to the gallary app)
Native: tried calling Splashscreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
How do I include cordova.js
only during chrome testing
Cordova is only included once your app is built to be run on a device, and so it's not available while testing in a browser. This of course means that plugins relying on Cordova wont work either. That's a limitation of testing in a browser. You can disregard the error.
To test all functionality you should test in an emulator or a real device.
use command ionic cordova run browser instead of ionic serve
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With