Will this library work with NativeScript #11
-
Do you foresee any issues using angular-async-local-storage with NativeScript? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
It's just a normal Angular library, no extra dependencies, so yes it should work with NativeScript. |
Beta Was this translation helpful? Give feedback.
-
Of course, IndexedDB API is required for this API to work. I'm not sure it's the case in NativeScript., as it doesn't produce a web app but a native app. |
Beta Was this translation helpful? Give feedback.
-
Thanks. The IndexedDB was what I was unsure of as it seems to be available only in browsers. |
Beta Was this translation helpful? Give feedback.
-
For everyone : after deeper investigation, this lib won't work in NativeScript as NS doesn't support local storage browsers API (neither You'll have to use the specific APIs of NativeScript. |
Beta Was this translation helpful? Give feedback.
-
This seems to be possible (untested!). One can inject a facade for the NativeScript ApplicationSettings into the StorageMap service, when running in a native environment.
|
Beta Was this translation helpful? Give feedback.
-
@schlusslicht Thanks for your interest in this lib and for this example. It should indeed be possible for the user to do its own implementation. |
Beta Was this translation helpful? Give feedback.
For everyone : after deeper investigation, this lib won't work in NativeScript as NS doesn't support local storage browsers API (neither
localStorage
orIndexedDB
).You'll have to use the specific APIs of NativeScript.