Comments (4)
Never mind. It was completely my fault and the issue is solved.
from cordova-plugin-nativestorage.
Thank you.
from cordova-plugin-nativestorage.
Hello,
Can you maybe post what was wrong and how you solved it? This for future
reference, for developers having the same problem?
On Wed, 14 Sep 2016, 06:45 Alok Rajiv, [email protected] wrote:
Thank you.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#39 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIOhi5P6A80A2mArzt5vMfoYrEtezWBWks5qp3vSgaJpZM4J8VUb
.
from cordova-plugin-nativestorage.
Sure. Well I called a this.doSomethingFunction() inside the success callback for setting an item, and the value of this wasn't the object I meant it to be (I forgot about the rules of "this"), so it threw an error.
The interesting thing is that when I tried to get the data it triggered the error call 5. I changed this.doSomethingFunction() to nameOfObjectThatMethodBelongsTo.doSomethingFunction() and it worked fine.
I also ran through an issue where the function that I tried to call in the success callback of setItem had a type error in it, and trying to access the value again I think triggered an error 5(I am not completely sure about this case, but it is likely). I fixed the type error, and it worked fine. Reading the .exception error helped in both cases to find the cause of the error.
All in all, if someone calls a method from another object in a success callback and a weird error occurs, see the source code for that function and use .exception to see what the error is and what caused it.
from cordova-plugin-nativestorage.
Related Issues (20)
- Ionic 3 - No provider for NativeStorage HOT 1
- Values not consistent HOT 1
- IOS doesn't work HOT 6
- getItem returns JSON_ERROR trying to get a value stored using objective c
- losing data on ios HOT 5
- retrieving data from another app HOT 1
- How can i get value from NativeStorage.getString() Without Using Callbacks? HOT 1
- Undefined data in iOS when trying to store data
- NativeStorage.keys func returns un known keys by default on IOS
- Angular Cordova app stucks at splash screen on iOS 13+ HOT 1
- Please, close this issue.
- Ionic Native Storage not working Android 9+ HOT 5
- Is this project being maintained? HOT 2
- MFP v8.o Push Rest Service Implementation sample java project or adapter HOT 1
- IOS build issue HOT 1
- Migrate data to React Native HOT 2
- Experience slow in ionic native storage in android version(sharedpreferences)
- iOS - setItem function always returns the wrong callback (Error storing item)
- Outdated values after installing new version of the app
- iOS - Privacy Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-nativestorage.