Crypho / cordova-plugin-secure-storage

Secure storage plugin for Apache Cordova
MIT License
278 stars 269 forks source link

iOS User interaction is not allowed #170

Closed vandres closed 5 years ago

vandres commented 5 years ago

We are using your library together with Ionic to save auth information of the user. Now we have the Problem on iOS (12.1.4), that sometimes the storage is not working. But just sometimes and hard to reproduce:

"Failure in SecureStorage.get() - User interaction is not allowed",{"__zone_symbol__currentTask":{"type":"microTask","state":"notScheduled","source":"Promise.then","zone":"angular","cancelFn":null,"runCount":0},"line":42,"column":45,"sourceURL":"ionic://localhost/plugins/cordova-plugin-secure-storage/www/securestorage.js"}

The code is very simple:

await this.platform.ready();
const storage: SecureStorageObject = await this.secureStorage.create(SecureStorageProvider.STORAGE_NAMESPACE);
await storage.get(key);
ggozad commented 5 years ago

The plugin is no-longer maintained closing all issues that are not going to be resolved.