ScottIsAFool / Bex

A PCL for accessing the MS Health Web APIs
MIT License
4 stars 1 forks source link

Location info not retrived on activity #4

Open a-iafrate opened 9 years ago

a-iafrate commented 9 years ago

Hi,

i have a problem with your library, i have added the ReadActivityLocation scope to login and MapPoints to request but the location in mapPoint object have all values (latitude,longitude ecc) to 0

Thank in advance!

ScottIsAFool commented 9 years ago

Are you able to provide a quick repro? Or some sample code that you're using so I can give it a try?

a-iafrate commented 9 years ago

Thank for your response.

for try you login with with all scope

App.BexClient.CreateAuthenticationUrl(new List { Scope.ActivityHistory, Scope.ActivityLocation, Scope.Devices, Scope.Profile,Scope.offline_access });

then you can retrive activities with

ActivitiesRequest ar1 = new ActivitiesRequest(); ar1.MaxItemsReturned = 25; ar1.ActivityTypes = new string[] { "Run" }; ar1.ActivityFieldsToInclude = new ActivityFields[] { ActivityFields.Details, ActivityFields.MapPoints };

            ActivitiesResponse ar = await App.BexClient.GetActivitiesAsync(ar1);

than you can see MapPoints in ar.RunActivities have all Latitude and Longitude to 0

Thanks again!

a-iafrate commented 9 years ago

Hi,

have you reproduced the problem, i can do anything for help you?

ScottIsAFool commented 9 years ago

Hi, sorry, not yet. Will try and look at it tonight or tomorrow (been a bit busy this week)

a-iafrate commented 9 years ago

no problem it's only for help you :;D

a-iafrate commented 9 years ago

Some news?

ScottIsAFool commented 9 years ago

I've had a look, and the run data I'm getting back isn't even including any of the location data. Looking around, it looks like this is a fault of the MS Health API. I think when they fix it on their end, it will just start working for you.