Did you verify this is a real problem by searching the [NativeScript Forum]
Yes: https://stackoverflow.com/questions/39582576/in-application-settings-iterate-the-key-values
Tell us about the problem
Right now there seems to be no way to get a representation of all key-value pairs that are currently stored in the application-settings. So it is not possible to say "delete all data for keys that starts with 'data-2018-08-21-...' " because we do not know which keys are stored and we like to iterate through all the keys to check which ones should be removed.
On native side, there seems to be a way to achieve this:
https://developer.android.com/reference/android/content/SharedPreferences#getAll()
https://developer.apple.com/documentation/foundation/nsuserdefaults/1415919-dictionaryrepresentation?language=objc
Which platform(s) does your issue occur on?
Both
Reactions are currently unavailable
Did you verify this is a real problem by searching the [NativeScript Forum]
Yes: https://stackoverflow.com/questions/39582576/in-application-settings-iterate-the-key-values
Tell us about the problem
Right now there seems to be no way to get a representation of all key-value pairs that are currently stored in the application-settings. So it is not possible to say "delete all data for keys that starts with 'data-2018-08-21-...' " because we do not know which keys are stored and we like to iterate through all the keys to check which ones should be removed.
On native side, there seems to be a way to achieve this:
https://developer.android.com/reference/android/content/SharedPreferences#getAll()
https://developer.apple.com/documentation/foundation/nsuserdefaults/1415919-dictionaryrepresentation?language=objc
Which platform(s) does your issue occur on?
Both