im trying to made a cross-platform application (iOS/Android/Browser). I choose NativeStorage from Cordova to build a storage solution for my app.
When i launch my app in the browser, the console output is :
Native: tried calling NativeStorage.getItem, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
main.js:3259 EXCEPTION: Uncaught (in promise): cordova_not_available
But the cordova NativeStorage plugin is compatible with iOS/Android/Browser, why i can’t use it in my code ?
Thanks for your help,
Edit : so, the problem occur when i use ionic serve, but if i run ionic run browser, cordova-nativestorage works well