-
Notifications
You must be signed in to change notification settings - Fork 56
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
Item with given key does not exist #39
Comments
@t4tapas can you try it with the most recent version? I rebased the plugin with latest plugin template from Ionic, maybe they fixed it. I do not use ProGuard, so I can not tell. |
Still happening on latest plugin |
Got the same issue here using the latest |
Is there any advancement on this issue? |
We experience the same error in our Angular Ionic/Capacitor App.
|
Another interesting finding. We have 2 values in our storage:
Case 1: Case 2: Case 3: @martinkasa do you have any idea on what's going on here? Would you be interested in a screen sharing / remote debug session? |
This issue still exists in the latest version. The only work around is to get the key first, which does correctly throw:
|
Is there any enhancement here? @alexcroox I don't get your point could explain to me? I have the impression when we send multiple get in parallel there is an asynchronous issue otherwise seems to work. |
@GuillaumeUnice previously I had just However |
Ok just to sum up the problem because everything as diverged from the initial issue. The only solution to handle it for now is to use other method for instances use |
We are running in to the same problem where an error is thrown if a key does not exist. We do not call the methods like getItem setItem by ourselves, we pass the securestorage to a 3rd party package with the Storage interface. The external package stops working whenever an error is thrown, this is not in our control. Throwing an error if a key does not exist is not compliant with the specs: https://html.spec.whatwg.org/multipage/webstorage.html#dom-storage-getitem |
Previously I created this issue for the following reason.
This plugin is getting the following error when
minifyEnabled
is set totrue
in Android.This error is actually coming always whether or not
minifyEnabled
is true.Could you please share the ProGuard rule for this plugin which is needed for
proguard-rules.pro
file?The text was updated successfully, but these errors were encountered: