Je travaille sur un projet Xamarin.Forms, et j'ai un problème vraiment bizarre. Ce code est en cours d'exécution dans le projet Xamarin.Droid.Invoke InvokeApiAsync Mobile App Services
Lorsque je tente de le faire
var user = await client.LoginAsync(this, MobileServiceAuthenticationProvider.Facebook);
if (user != null)
{
try
{
// executes this line
var userInfo = await client.InvokeApiAsync("/.auth/me");
// down here nothing is executed and userInfo is never set with the data
}
catch (Exception e)
{
// never enter to this block
}
}
La variable userInfo est jamais définie avec les données, et aucune exception et rien rare dans la sortie.
J'ai déjà essayé client.InvokeApiAsync ("/. Auth/moi", HttpMethod.Get, null) mais ne fonctionne pas non plus.
Je sais que c'est une information assez courte mais je n'ai rien d'autre, car aucune exception n'est soulevée.
Merci.