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

json output different in android than ios

$
0
0

Hi,

I am building an app and when I get a json string from the google plus api for account info the json string contains less info than the json string in ios. For example the email adress is missing in android but is vissible in ios. This is my code:

HttpClient client = new HttpClient();
                client.DefaultRequestHeaders.Authorization = AuthenticationHeaderValue.Parse("Basic");
                HttpResponseMessage res = await client.GetAsync("https://www.googleapis.com/plus/v1/people/me?access_token=" + App.GoogleApiAccesToken);
                string r = await res.Content.ReadAsStringAsync();

                JObject JObj = JObject.Parse(r);
                Debug.WriteLine(JObj);

Viewing all articles
Browse latest Browse all 58056

Trending Articles



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