{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/2","id":35518506,"html_url":"https://github.com/texh/cordova-plugin-stepcounter/pull/2","diff_url":"https://github.com/texh/cordova-plugin-stepcounter/pull/2.diff","patch_url":"https://github.com/texh/cordova-plugin-stepcounter/pull/2.patch","issue_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues/2","number":2,"state":"closed","locked":false,"title":"Correcting errors with device reboot","user":{"login":"Slidee","id":322459,"avatar_url":"https://avatars.githubusercontent.com/u/322459?v=3","gravatar_id":"","url":"https://api.github.com/users/Slidee","html_url":"https://github.com/Slidee","followers_url":"https://api.github.com/users/Slidee/followers","following_url":"https://api.github.com/users/Slidee/following{/other_user}","gists_url":"https://api.github.com/users/Slidee/gists{/gist_id}","starred_url":"https://api.github.com/users/Slidee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slidee/subscriptions","organizations_url":"https://api.github.com/users/Slidee/orgs","repos_url":"https://api.github.com/users/Slidee/repos","events_url":"https://api.github.com/users/Slidee/events{/privacy}","received_events_url":"https://api.github.com/users/Slidee/received_events","type":"User","site_admin":false},"body":"Hello again,\r\n\r\nI've just seen and corrected an issue with rebooting the phone from my code (the step count went negative due to offset > steps), so there is a correction.\r\nNow everything is ok even when rebooting the phone in a middle of a day.\r\n\r\nI renamed my function to getTodayStepCount and re-added your old getStepCount function which returns the count from service start (but go back to 0 if service is killed, just as it was).\r\n\r\nI also added in the readme the issues i found, and for which i should work a little bit more (just to keep in mind).\r\n\r\nSee you","created_at":"2015-05-15T14:37:11Z","updated_at":"2015-05-15T14:41:47Z","closed_at":"2015-05-15T14:41:47Z","merged_at":"2015-05-15T14:41:47Z","merge_commit_sha":"1d1e94c09523949d67a6974752421b0f5cf034df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/2/commits","review_comments_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/2/comments","review_comment_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues/2/comments","statuses_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/statuses/446eb45fa3c9671851201f39e1671d7dcb13546c","head":{"label":"Slidee:master","ref":"master","sha":"446eb45fa3c9671851201f39e1671d7dcb13546c","user":{"login":"Slidee","id":322459,"avatar_url":"https://avatars.githubusercontent.com/u/322459?v=3","gravatar_id":"","url":"https://api.github.com/users/Slidee","html_url":"https://github.com/Slidee","followers_url":"https://api.github.com/users/Slidee/followers","following_url":"https://api.github.com/users/Slidee/following{/other_user}","gists_url":"https://api.github.com/users/Slidee/gists{/gist_id}","starred_url":"https://api.github.com/users/Slidee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slidee/subscriptions","organizations_url":"https://api.github.com/users/Slidee/orgs","repos_url":"https://api.github.com/users/Slidee/repos","events_url":"https://api.github.com/users/Slidee/events{/privacy}","received_events_url":"https://api.github.com/users/Slidee/received_events","type":"User","site_admin":false},"repo":{"id":35666606,"name":"cordova-plugin-stepcounter","full_name":"Slidee/cordova-plugin-stepcounter","owner":{"login":"Slidee","id":322459,"avatar_url":"https://avatars.githubusercontent.com/u/322459?v=3","gravatar_id":"","url":"https://api.github.com/users/Slidee","html_url":"https://github.com/Slidee","followers_url":"https://api.github.com/users/Slidee/followers","following_url":"https://api.github.com/users/Slidee/following{/other_user}","gists_url":"https://api.github.com/users/Slidee/gists{/gist_id}","starred_url":"https://api.github.com/users/Slidee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slidee/subscriptions","organizations_url":"https://api.github.com/users/Slidee/orgs","repos_url":"https://api.github.com/users/Slidee/repos","events_url":"https://api.github.com/users/Slidee/events{/privacy}","received_events_url":"https://api.github.com/users/Slidee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slidee/cordova-plugin-stepcounter","description":"Cordova plugin for Android 4.4+ step counter API","fork":true,"url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter","forks_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/forks","keys_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/teams","hooks_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/hooks","issue_events_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/issues/events{/number}","events_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/events","assignees_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/assignees{/user}","branches_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/branches{/branch}","tags_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/tags","blobs_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/statuses/{sha}","languages_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/languages","stargazers_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/stargazers","contributors_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/contributors","subscribers_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/subscribers","subscription_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/subscription","commits_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/contents/{+path}","compare_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/merges","archive_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/downloads","issues_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/issues{/number}","pulls_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/pulls{/number}","milestones_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/milestones{/number}","notifications_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/labels{/name}","releases_url":"https://api.github.com/repos/Slidee/cordova-plugin-stepcounter/releases{/id}","created_at":"2015-05-15T09:50:05Z","updated_at":"2015-05-15T09:50:05Z","pushed_at":"2015-05-15T14:36:25Z","git_url":"git://github.com/Slidee/cordova-plugin-stepcounter.git","ssh_url":"git@github.com:Slidee/cordova-plugin-stepcounter.git","clone_url":"https://github.com/Slidee/cordova-plugin-stepcounter.git","svn_url":"https://github.com/Slidee/cordova-plugin-stepcounter","homepage":null,"size":95,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"texh:master","ref":"master","sha":"8637071a197252f9e3686cf8bae4ec788f49d635","user":{"login":"texh","id":1356489,"avatar_url":"https://avatars.githubusercontent.com/u/1356489?v=3","gravatar_id":"","url":"https://api.github.com/users/texh","html_url":"https://github.com/texh","followers_url":"https://api.github.com/users/texh/followers","following_url":"https://api.github.com/users/texh/following{/other_user}","gists_url":"https://api.github.com/users/texh/gists{/gist_id}","starred_url":"https://api.github.com/users/texh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texh/subscriptions","organizations_url":"https://api.github.com/users/texh/orgs","repos_url":"https://api.github.com/users/texh/repos","events_url":"https://api.github.com/users/texh/events{/privacy}","received_events_url":"https://api.github.com/users/texh/received_events","type":"User","site_admin":false},"repo":{"id":29065372,"name":"cordova-plugin-stepcounter","full_name":"texh/cordova-plugin-stepcounter","owner":{"login":"texh","id":1356489,"avatar_url":"https://avatars.githubusercontent.com/u/1356489?v=3","gravatar_id":"","url":"https://api.github.com/users/texh","html_url":"https://github.com/texh","followers_url":"https://api.github.com/users/texh/followers","following_url":"https://api.github.com/users/texh/following{/other_user}","gists_url":"https://api.github.com/users/texh/gists{/gist_id}","starred_url":"https://api.github.com/users/texh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texh/subscriptions","organizations_url":"https://api.github.com/users/texh/orgs","repos_url":"https://api.github.com/users/texh/repos","events_url":"https://api.github.com/users/texh/events{/privacy}","received_events_url":"https://api.github.com/users/texh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/texh/cordova-plugin-stepcounter","description":"Cordova plugin for Android 4.4+ step counter API","fork":false,"url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter","forks_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/forks","keys_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/teams","hooks_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/hooks","issue_events_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues/events{/number}","events_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/events","assignees_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/assignees{/user}","branches_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/branches{/branch}","tags_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/tags","blobs_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/git/refs{/sha}","trees_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/statuses/{sha}","languages_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/languages","stargazers_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/stargazers","contributors_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/contributors","subscribers_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/subscribers","subscription_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/subscription","commits_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/commits{/sha}","git_commits_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/git/commits{/sha}","comments_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/comments{/number}","issue_comment_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues/comments{/number}","contents_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/contents/{+path}","compare_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/merges","archive_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/downloads","issues_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues{/number}","pulls_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls{/number}","milestones_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/milestones{/number}","notifications_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/labels{/name}","releases_url":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/releases{/id}","created_at":"2015-01-10T17:46:01Z","updated_at":"2015-04-02T07:59:47Z","pushed_at":"2015-05-15T14:41:47Z","git_url":"git://github.com/texh/cordova-plugin-stepcounter.git","ssh_url":"git@github.com:texh/cordova-plugin-stepcounter.git","clone_url":"https://github.com/texh/cordova-plugin-stepcounter.git","svn_url":"https://github.com/texh/cordova-plugin-stepcounter","homepage":null,"size":160,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/2"},"html":{"href":"https://github.com/texh/cordova-plugin-stepcounter/pull/2"},"issue":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues/2"},"comments":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/texh/cordova-plugin-stepcounter/statuses/446eb45fa3c9671851201f39e1671d7dcb13546c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"texh","id":1356489,"avatar_url":"https://avatars.githubusercontent.com/u/1356489?v=3","gravatar_id":"","url":"https://api.github.com/users/texh","html_url":"https://github.com/texh","followers_url":"https://api.github.com/users/texh/followers","following_url":"https://api.github.com/users/texh/following{/other_user}","gists_url":"https://api.github.com/users/texh/gists{/gist_id}","starred_url":"https://api.github.com/users/texh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texh/subscriptions","organizations_url":"https://api.github.com/users/texh/orgs","repos_url":"https://api.github.com/users/texh/repos","events_url":"https://api.github.com/users/texh/events{/privacy}","received_events_url":"https://api.github.com/users/texh/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":9,"additions":65,"deletions":14,"changed_files":5}}