cordova-plugin-nativestorage icon indicating copy to clipboard operation
cordova-plugin-nativestorage copied to clipboard

initWithSuiteName

Open JaviLopezM opened this issue 6 years ago • 4 comments

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'.

JaviLopezM avatar Aug 07 '18 12:08 JaviLopezM

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.

GillesC avatar Aug 07 '18 13:08 GillesC

I think so, I installed yesterday using NPM like this: https://ionicframework.com/docs/native/native-storage/

JaviLopezM avatar Aug 08 '18 06:08 JaviLopezM

Even i have the same issue as @JaviLopezM . I have v2.3.2 installed in my project

naveenachandras avatar Aug 23 '18 08:08 naveenachandras

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

sts-ryan-holton avatar Sep 23 '19 15:09 sts-ryan-holton