Hi,
I'm currently stuck with a bug using App.Current.Properties.
I have an application deployed to iOs and Android. I have a common project containing View, Viewmodels...
Into my first screen, I have a login/password form. When the user logs in, I save its values into App.Current.Properties and then call SavePropertiesAsync.
The user do what he has to do and then quits the application.
Later, he comes back to the app and then, i load values into the different textboxes.
This works well on iOs app but not in Android one. Saving and Loading values is done by the same class (shared into a portable class library) and these calls are done into the same ViewModel for both app so the code is exactly the same in iOs and Android apps.
Another detail that is important : it works on Android when debugging. It doesn't work when I create the apk package, sign it and then install it manually.
Environment :
- Developping with Visual Studio 2015 Enterprise Update 2
Xamarin versions for the Android app :
- Xamarin.Forms 2.2.0.31
- Xamarin.Android.* : 23.3.0
Xamarin version for the portable class library that owns Views and viewmodels : Xamarin.Forms 2.2.0.31
Steps to NOT reproduce the bug :
All these steps must be done in debug mode
- Open the application
- fill login/password fields and validate the connection
- (here, the connection is verified and the values are saved into app.current.properties)
- quit the application
- restart the application
- All the fields are filled
Steps to reproduce the bug :
Do the same steps but not in debug mode (just create apk, sign it, install it manually).
Do you know why I got this bug ?