In the docs for properties/xamarin.essentials preferences they mention to not store "large text". I'm wondering what is considered "large text". I want to know how big of a class is safe/performant to serialize as json.
Asked
Active
Viewed 430 times
0
-
1I don't think there is any hard limit. I would probably avoid anything bigger than a few K. – Jason Mar 10 '20 at 12:44
-
so in your opinion a 50kb json string is a big no no? – Roy Harel Mar 10 '20 at 12:56
-
1I would just manually serialize that to a file – Jason Mar 10 '20 at 12:59
-
yea i was doing that actually just liked how simple props/prefs are hehe – Roy Harel Mar 10 '20 at 13:00
-
noob question.. how can i makr this as answered? i have to "write my own answer"? – Roy Harel Mar 10 '20 at 14:58
-
just write an answer to the question in the Answer box – Jason Mar 10 '20 at 14:59
-
FWIW I'm having no problems using SecureStorage with 25kb + Json strings on Pixel 3 Android Emulator. Not tried iOS or on device yet as I write this post. – ledragon May 19 '21 at 15:48