I am developing a MonoGame application for Windows Phone 8. I am using the .Net SDK for Parse for my backend services. I log in using
ParseUser user = await ParseFacebookUtils.LogInAsync(browser, null);
This redirects the application to the web browser for login and automatically returns to the application after the login is completed or canceled. At this point, I can call ParseUser.CurrentUser to get the current registered Facebook user (null if not logged in). According to Parse docs :
It would be annoying if the user had to register every time they open your application. You can avoid this by using the cached ParseUser.CurrentUser object.
Whenever you use any registration or logon methods, the user caches the disk. You can consider this cache as a session and automatically accept the user logged in
So, after logging in, I restart the application waiting for ParseUser.CurrentUser to return the previously registered user, but it does not return null, so I need to log in again. I cannot say that I am doing something wrong or that it is a mistake.
source
share