Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

IsolatedStorageFile.GetUserStoreForApplication, Environment.SpecialFolder.LocalApplicationData

$
0
0

Getting ready to submit my application to Apple I came across some discussions about file storage that had me wondering whether I'm doing things correctly. I have found lots of threads about these issues and some Xamarin bugs (given iOS 8 changes) but it sounds like the state of these issues have been changing, so I'm not sure where they are right now.

Currently everything in my app works in the emulators and on my device. Apparently though this is common and people find there is a problem only after submitting their apps.

Currently I use IsolatedStorageFile.GetUserStoreForApplication for custom data files and I use Environment.GetFolderPath (Environment.SpecialFolder.LocalApplicationData) to create sub-folders for cached images and audio files. I don't use different approaches intentionally, it's just different code from different times.

Some folks have suggested we need to re-architect to test for OS version and implement multiple approaches, iOS 8 using something like ...

var cache = NSFileManager.DefaultManager.GetUrls(NSSearchPathDirectory.CachesDirectory, NSSearchPathDomain.User);

... but I've also heard that Xamarin is or will be updated to allow the old code approaches to work uniformly across OS versions.

Can anyone say definitively how to approach local file storage if you want to submit an app this week?

thanks!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>