Dear Xamarin Developers,
Since a couple of weeks I started developing a mobile application of my own. To become a more experienced developer, and because I like developing for the mobile platform.
After discovering Xamarin I started writing a application to consume the web api I wrote earlier, the web api also uses a sort of OAuth implentation. I started using Xamarin.Forms with RestSharp to handle the requests. After retrieving the login token it stores some data using App.Current.Properties.
After the login is successful, a new request is send to retrieve some JSON data, the JSON data is shown in a ListView. So far so good.
But I discovered a bug which seems to appear on Windows Phone. (Android works fine, iOS is not tested yet)
The problem is as following:
If user A logs in the returned data is shown in a ListView.
But if user A logs out (by deleting the token from the properties) and user B logs in, the data of user A is shown in the ListView.
I already tested if the application sends the right access token, but this seems to be the case, if I use the same access token in Postman I get the data belonging to the right user.
This happens only on windows phone so far.
I really have no idea where this bug comes from or how to fix it, maybe a more experienced xamarin/c# developer can find out what is wrong.
I hope I did not posted this in the wrong section.
GitHub Repo: https://github.com/ricardofarina96/TimeTrackerClient