-
Notifications
You must be signed in to change notification settings - Fork 108
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
NativeStorage is unavailable/undefined #10
Comments
could you specify the platform you are using Android/iOS and the version. |
I am working on iOS 9.3.1 |
I am able to run it on iOS v9.3 without any issues. |
I confirm the output, see below:
|
@marianfeiler |
I tried, but i run in Error. |
Great to know you got it working. So, thank you for confirming. I am closing this issue. |
I've opted for callback functions because of the nature of JavaScript. It's an inherent strategy used in JavaScript. It makes asynchronuous communication possible. Thus, not blocking the rest of the code. The overhead introduced by Cordova is in that manner less obvious. |
Hi,
Instead I would like to advice @GillesC to insert this instructions inside Readme file. |
@Neo1975 I've written a wrapper, can u see if the problem persists when using the wrapper to access the NativeStorage functionalities. If so I will include your instructions for this problem in the README, otherwise the users should use the wrapper for using the plugin in Ionic or other AngulerJS related frameworks. Edit: the wrapper only wraps the functionalities provided as of v2. |
Indeed, I imported wrapper project as you describe in the ReadMe file: the Il giorno ven 27 mag 2016 alle ore 18:04 Gilles Callebaut <
|
@Neo1975 Thanks for your contribution, I will update the readme and will look further into the matter, when I have more time. |
Hello. I know this is closed, but I am trying to use the fix described by @Neo1975. I am not able to get my angular app to run. Is there a more specific place that I place the javascript bootstrapper after I remove ng-app from my body tag? Thanks so much for any help. |
Hello @alokrajiv Thanks for the reply. Yes, I am using the script as suggested, just changed the app name. I have tried placing it in many different locations at the bottom of my index.html file. Here is a snippet:
I suppose this was the solution to getting "undefined" when using a get call when there is nothing in storage yet. Like I said I have tried many iterations of the code placement. Maybe I something else in the wrong place. Thanks for your help! |
@jwuliger Which version of angular are you using? also are you using ionic? without ionic I am able to inject |
I installed the Plugin, but it is not working.
nativeStorage is not available.
I try on deviceready:
any ideas? I am using phonegap actual
The text was updated successfully, but these errors were encountered: