{"action":"created","issue":{"url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/20","labels_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/20/comments","events_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/20/events","html_url":"https://github.com/Red-Folder/bgs-core/issues/20","id":55459216,"number":20,"title":"Timer is not stable ? Timer did not work when the app paused","user":{"login":"hellojinjie","id":204361,"avatar_url":"https://avatars.githubusercontent.com/u/204361?v=3","gravatar_id":"","url":"https://api.github.com/users/hellojinjie","html_url":"https://github.com/hellojinjie","followers_url":"https://api.github.com/users/hellojinjie/followers","following_url":"https://api.github.com/users/hellojinjie/following{/other_user}","gists_url":"https://api.github.com/users/hellojinjie/gists{/gist_id}","starred_url":"https://api.github.com/users/hellojinjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellojinjie/subscriptions","organizations_url":"https://api.github.com/users/hellojinjie/orgs","repos_url":"https://api.github.com/users/hellojinjie/repos","events_url":"https://api.github.com/users/hellojinjie/events{/privacy}","received_events_url":"https://api.github.com/users/hellojinjie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-26T08:59:40Z","updated_at":"2015-02-02T18:55:18Z","closed_at":null,"body":"Hi, \r\n\r\nI create a service named CoreService using bgs-core\r\nI enable the timer using 'enableTimer(50 * 1000);'\r\nThe timer worked fine when the app is open.\r\nWhen the app go to background, the CoreService is still running in the background, but the timer did not work.\r\n\r\nWhy you choose Timer to schedule task? \r\nWill AlarmManager be a better chooice when CoreService running in background?\r\n\r\ntkx"},"comment":{"url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/comments/72514759","html_url":"https://github.com/Red-Folder/bgs-core/issues/20#issuecomment-72514759","issue_url":"https://api.github.com/repos/Red-Folder/bgs-core/issues/20","id":72514759,"user":{"login":"Red-Folder","id":2298738,"avatar_url":"https://avatars.githubusercontent.com/u/2298738?v=3","gravatar_id":"","url":"https://api.github.com/users/Red-Folder","html_url":"https://github.com/Red-Folder","followers_url":"https://api.github.com/users/Red-Folder/followers","following_url":"https://api.github.com/users/Red-Folder/following{/other_user}","gists_url":"https://api.github.com/users/Red-Folder/gists{/gist_id}","starred_url":"https://api.github.com/users/Red-Folder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Red-Folder/subscriptions","organizations_url":"https://api.github.com/users/Red-Folder/orgs","repos_url":"https://api.github.com/users/Red-Folder/repos","events_url":"https://api.github.com/users/Red-Folder/events{/privacy}","received_events_url":"https://api.github.com/users/Red-Folder/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T18:55:18Z","updated_at":"2015-02-02T18:55:18Z","body":"@ronaldjeremy I'd have a look at some form of logging solution - something that will write a log to file or database - which you can then retrieve later.  I'm sure google search will find one.  I'd be surprised that your code runs differently between cabled and not (unless it is using specific cabled resources like network)."}}