apla / me.apla.cordova.app-preferences

App preferences plugin for cordova
Apache License 2.0
201 stars 210 forks source link

Implement clearAll for all platforms #95

Closed scurker closed 7 years ago

scurker commented 8 years ago

It's not currently publicly documented, but there appears to be a clearAll method that clears app preferences on devices. It appears to only be implemented on Android, with a placeholder "not implemented" for iOS.

The main issue is, if you're trying to any kind of cleanup it requires you to know all the keys ahead of time and remove them individually, since there's no easy way to fetch all the keys that you've added. It would be great for scenarios like this if clearAll was implemented for every platform.

ghost commented 7 years ago

I would love to see this feature. And it would be lovely to get a list of key names we stored as well.

apla commented 7 years ago

I've added this functionality in 213eaf37ac460e674b64ca905bb752a890a6e050, but it is not ready for production until I've test it under windows.

apla commented 7 years ago

tested under windows, released as 0.99.0