cordova-plugin-nativestorage
cordova-plugin-nativestorage copied to clipboard
initWithSuiteName
Dears, how I use the first declaration ? Nativestorage.initWithSuiteName("nameOfMyApp");
Because when I call this function I can't compile: Property 'initWithSuiteName' does not exist on type 'NativeStorage'.
Are you using the latest version of the plugin, i.e. v2.3.2? If not, please install the latest version from npm or from Github (dev. version): https://github.com/TheCocoaProject/cordova-plugin-nativestorage#installation.
I think so, I installed yesterday using NPM like this: https://ionicframework.com/docs/native/native-storage/
Even i have the same issue as @JaviLopezM . I have v2.3.2 installed in my project
I've implemented this and it seems to work great for Android, however, with iOS, after storing to Native Storage once and force-closing the app, the native storage has been cleared upon reopening the app. For Android, this isn't the case