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

Saving Application.Current.Properties with Xamarin Forms Android Release Build

$
0
0

I have an application where I'm trying to save user preferences. This works fine with a debug build for Android. The preferences are saved and the user data is stored without any issues as long as I'm running the app under Debug. Once I switch to a release build then the application will no longer save user preferences on Android. It saves fine with iOS.

My Code:

        //Set the reference ID 
        Application.Current.Properties ["referenceID"] = referenceID.ToString();

        //Force a properties save       
        await Application.Current.SavePropertiesAsync();

Is there some kind of permission I need to enable for Release configurations? I haven't been able to find anything that says there is a permission that needs to be enabled.


Viewing all articles
Browse latest Browse all 76418

Trending Articles



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