Complex objects place to persist

Does anybody knows what is the best place to persist complex objects when using Xamarin.Forms? I cannot decide where to save my complex objects. What is the best practice: Save them as serialized JSON string into the Application.Current.Properties or save them into files (serialized as byte array or JSON string)? If I use the second (file saving) approach I'll have to write some platform specific code for file IO or to use some NuGet package for this job. Isn't it better just to save them into the Application.Current.Properties? Any advice or information for pros and cons for any of the approaches will be appreciated :)

Posts

  • tribaltribal USMember ✭✭✭
    edited December 2016

    You could use James Montemagno's Xam Settings plugin if you would just like to persist data.

    Also check out Akavache by Paul Betts which is a great library on top of SQLite for caching stuff, persisting objects & much more

  • KrisPetkovKrisPetkov BGMember ✭✭

    Thank you for the advice I'll look this plugins

Sign In or Register to comment.