Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Save different data in App.Current.Properties

$
0
0

As I understand, App.Current.Properties is available at any place on every platform. The data we put in the current app property is available after the app have been closed and opened again.

I think it's a nice feature because it's also easy to work with.

My question: Would it be stupid, dangerous or take up resources to use the current app property to save auth tokens, settings or even data that the user can change and don't have to be garbage collected at any time (that way I don't have to "send" data back and forth between my views.) I know it's static so it would be risky to put something in there that could give access to something restricted.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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