{"action":"created","issue":{"url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/58","repository_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health","labels_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/58/comments","events_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/58/events","html_url":"https://github.com/dariosalvi78/cordova-plugin-health/issues/58","id":233771794,"number":58,"title":"Not getting sourceName in query response","user":{"login":"bimal72","id":923301,"avatar_url":"https://avatars2.githubusercontent.com/u/923301?v=3","gravatar_id":"","url":"https://api.github.com/users/bimal72","html_url":"https://github.com/bimal72","followers_url":"https://api.github.com/users/bimal72/followers","following_url":"https://api.github.com/users/bimal72/following{/other_user}","gists_url":"https://api.github.com/users/bimal72/gists{/gist_id}","starred_url":"https://api.github.com/users/bimal72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bimal72/subscriptions","organizations_url":"https://api.github.com/users/bimal72/orgs","repos_url":"https://api.github.com/users/bimal72/repos","events_url":"https://api.github.com/users/bimal72/events{/privacy}","received_events_url":"https://api.github.com/users/bimal72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-06T03:48:55Z","updated_at":"2017-06-06T08:51:11Z","closed_at":null,"body":"Hi, \r\nI am using Google Fit App to log the data and created my own application, in which I am using query method.\r\nIt returns only data without source name\r\n```\r\n[\r\n{\"startDate\":\"2017-06-06T01:50:35.663Z\",\"endDate\":\"2017-06-6T01:51:35.663Z\",\"value\":7,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T01:51:59.000Z\",\"endDate\":\"2017-06-06T01:52:19.932Z\",\"value\":9,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T01:52:19.932Z\",\"endDate\":\"2017-06-6T01:52:59.000Z\",\"value\":18,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T01:52:59.000Z\",\"endDate\":\"2017-06-06T01:53:01.880Z\",\"value\":5,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T01:53:29.384Z\",\"endDate\":\"2017-06-06T01:54:29.384Z\",\"value\":7,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T01:54:36.892Z\",\"endDate\":\"2017-06-6T01:55:42.892Z\",\"value\":33,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T01:58:03.893Z\",\"endDate\":\"2017-06-6T01:59:03.893Z\",\"value\":16,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:00:58.889Z\",\"endDate\":\"2017-06-6T02:01:58.889Z\",\"value\":12,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:01:58.889Z\",\"endDate\":\"2017-06-06T02:02:01.631Z\",\"value\":2,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:22:03.212Z\",\"endDate\":\"2017-06-6T02:22:28.901Z\",\"value\":37,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:22:36.901Z\",\"endDate\":\"2017-06-06T02:23:36.901Z\",\"value\":8,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:23:36.901Z\",\"endDate\":\"2017-06-6T02:24:16.891Z\",\"value\":38,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:24:16.891Z\",\"endDate\":\"2017-06-06T02:24:23.445Z\",\"value\":7,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:24:23.445Z\",\"endDate\":\"2017-06-6T02:25:32.237Z\",\"value\":85,\"unit\":\"count\"},\r\n{\"startDate\":\"2017-06-06T02:25:32.237Z\",\"endDate\":\"2017-06-06T02:25:33.535Z\",\"value\":2,\"unit\":\"count\"}\r\n]\r\n```\r\nLet me know how to get sourceName.  Also is it possible to get sourceName in queryAggregated() method?\r\n"},"comment":{"url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/comments/306423202","html_url":"https://github.com/dariosalvi78/cordova-plugin-health/issues/58#issuecomment-306423202","issue_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/58","id":306423202,"user":{"login":"dariosalviwork","id":10922108,"avatar_url":"https://avatars0.githubusercontent.com/u/10922108?v=3","gravatar_id":"","url":"https://api.github.com/users/dariosalviwork","html_url":"https://github.com/dariosalviwork","followers_url":"https://api.github.com/users/dariosalviwork/followers","following_url":"https://api.github.com/users/dariosalviwork/following{/other_user}","gists_url":"https://api.github.com/users/dariosalviwork/gists{/gist_id}","starred_url":"https://api.github.com/users/dariosalviwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariosalviwork/subscriptions","organizations_url":"https://api.github.com/users/dariosalviwork/orgs","repos_url":"https://api.github.com/users/dariosalviwork/repos","events_url":"https://api.github.com/users/dariosalviwork/events{/privacy}","received_events_url":"https://api.github.com/users/dariosalviwork/received_events","type":"User","site_admin":false},"created_at":"2017-06-06T08:51:11Z","updated_at":"2017-06-06T08:51:11Z","body":"I don't know how to help you on this. I can assure that in all my tests it is returning the source both in Android and iOS. Please make sure you are using the latest release of the plugin.\r\n\r\nRegarding the aggregated query, it's not possible to retrieve the source because it aggregates on all sources. There would be the possibility to filter the data according to its source both in iOS and Android, but it's not implemented here."}}
{"actor":{"display_login":"dariosalviwork"}}