{"action":"created","issue":{"url":"https://api.github.com/repos/Countly/countly-sdk-web/issues/12","repository_url":"https://api.github.com/repos/Countly/countly-sdk-web","labels_url":"https://api.github.com/repos/Countly/countly-sdk-web/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Countly/countly-sdk-web/issues/12/comments","events_url":"https://api.github.com/repos/Countly/countly-sdk-web/issues/12/events","html_url":"https://github.com/Countly/countly-sdk-web/issues/12","id":179255830,"number":12,"title":"Screen.width & screen.height have compatible problems.","user":{"login":"jianglinchun","id":491408,"avatar_url":"https://avatars.githubusercontent.com/u/491408?v=3","gravatar_id":"","url":"https://api.github.com/users/jianglinchun","html_url":"https://github.com/jianglinchun","followers_url":"https://api.github.com/users/jianglinchun/followers","following_url":"https://api.github.com/users/jianglinchun/following{/other_user}","gists_url":"https://api.github.com/users/jianglinchun/gists{/gist_id}","starred_url":"https://api.github.com/users/jianglinchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianglinchun/subscriptions","organizations_url":"https://api.github.com/users/jianglinchun/orgs","repos_url":"https://api.github.com/users/jianglinchun/repos","events_url":"https://api.github.com/users/jianglinchun/events{/privacy}","received_events_url":"https://api.github.com/users/jianglinchun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-26T15:10:09Z","updated_at":"2016-09-27T08:15:22Z","closed_at":null,"body":"I'd found those code below:\r\n`//getting resolution\r\n\t\tif (screen.width) {\r\n            var width = (screen.width) ? screen.width : '';\r\n            var height = (screen.height) ? screen.height : '';\r\n            metrics._resolution = '' + width + \"x\" + height;\r\n        }`\r\n\r\nI found exactly the problem why metrics._resolution return wrong value from ios or android devices:\r\n\r\nscreen.width/screen.height returns logical resolution(dpi) on iOS while android return physical resolution(pix) on Android:\r\nhttp://stackoverflow.com/questions/6850164/get-the-device-width-in-javascript\r\n\r\nSo metrics._resolution should be improved. Cause we developers can't argue the resolution's value with marketing & biz guys. And the boss. So…… I'ts a choice and a compatible problem……"},"comment":{"url":"https://api.github.com/repos/Countly/countly-sdk-web/issues/comments/249797212","html_url":"https://github.com/Countly/countly-sdk-web/issues/12#issuecomment-249797212","issue_url":"https://api.github.com/repos/Countly/countly-sdk-web/issues/12","id":249797212,"user":{"login":"jianglinchun","id":491408,"avatar_url":"https://avatars.githubusercontent.com/u/491408?v=3","gravatar_id":"","url":"https://api.github.com/users/jianglinchun","html_url":"https://github.com/jianglinchun","followers_url":"https://api.github.com/users/jianglinchun/followers","following_url":"https://api.github.com/users/jianglinchun/following{/other_user}","gists_url":"https://api.github.com/users/jianglinchun/gists{/gist_id}","starred_url":"https://api.github.com/users/jianglinchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianglinchun/subscriptions","organizations_url":"https://api.github.com/users/jianglinchun/orgs","repos_url":"https://api.github.com/users/jianglinchun/repos","events_url":"https://api.github.com/users/jianglinchun/events{/privacy}","received_events_url":"https://api.github.com/users/jianglinchun/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T08:15:22Z","updated_at":"2016-09-27T08:15:22Z","body":"Yes. Something like that. Please do more test."}}
{"actor":{"display_login":"jianglinchun"}}