Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initWithSuiteName #123

Open
JaviLopezM opened this issue Aug 7, 2018 · 4 comments
Open

initWithSuiteName #123

JaviLopezM opened this issue Aug 7, 2018 · 4 comments

Comments

@JaviLopezM
Copy link

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

@GillesC
Copy link
Collaborator

GillesC commented Aug 7, 2018

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.

@JaviLopezM
Copy link
Author

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

@naveenachandras
Copy link

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

@sts-ryan-holton
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants