Closed mirko77 closed 8 years ago
Fixed some issues for non-existing keys. Please install new version from github repo and report does it work for you.
I see a similar issue. If I fetch a non-existing key in iOS, the ok handler is called with value null. On Android, the fail handler is called. Based on documentation, on iOS the fail handler should be called.
@jacobg can you provide test case? what version you're using? just launched test for android and every test is pass. according to the test source (lines 48 and 78), there is a check for this issue.
No response, have test for this, test passing
I am trying the plugin on iOS 8.1.2, Cordova iOS 3.8
when I do
prefs.fetch(ok, fail, 'key');
and key does not exist, theok
callback is called with an array asvalue
so I need to do an extra check only on iOS to make it work