-
Notifications
You must be signed in to change notification settings - Fork 108
Changelog
#Changelog
- Fixed wrong double/boolean behaviour in Android (Strings were being returned)
- Increased Test Coverage
- Rewire of the JS back-end (no change to API)
For testing purposes the browser is also supported. If running in the browser localstorage is used.
Storage and retrieval of objects are now possible. This is done by means of JSON functionalities.
Plugin-users will now be certain writing was successful when the set
method is called. With thanks to alokrajiv for pointing out that the apply()
method used in Android doesn't ensure the value is successful stored. As of version 1.0.8. the plugin-users will be certain the value is stored when the success-callback has been invoked --which is the case for both Android and iOS.
A global remove
method is now provided so developers can now remove a variable for a reference.
NativeStorage.remove("reference_to_value", <success-callback>, <error-callback>);
The <success-callback>
will be called when the deletion was succesfull, otherwise the <error-callback>
will provide you with an error message.
Now developers can use a simple set
method for saving all the supported types.
An overall get
method is'nt (yet) supported.
NativeStorage.set("reference_to_value",<value>, <success-callback>, <error-callback>);
NativeStorage.get<type>("reference_to_value",<success-callback>, <error-callback>);
The developers can also opt to call a put
method specified by the type, like shown below.