russhwolf / multiplatform-settings

A Kotlin Multiplatform library for saving simple key-value data
Apache License 2.0
1.68k stars 67 forks source link

Preferences are not persisting after app close #89

Closed sdzshn3 closed 3 years ago

sdzshn3 commented 3 years ago

Preferences are saving in storage.. After clearing app from recents, preferences are getting vanished. Info, using Android 11, and using this library in KMM

russhwolf commented 3 years ago

Is it possible you're running into the same issue as here?

sdzshn3 commented 3 years ago

Did a stupid mistake.. Was calling .clear() instead of calling .remove(). Earlier there was only one preference, so I used .clear() after adding more preferences, forget to remove only one preference...