{"action":"created","issue":{"url":"https://api.github.com/repos/jacktech24/gcmnetworkmanager-android-example/issues/1","labels_url":"https://api.github.com/repos/jacktech24/gcmnetworkmanager-android-example/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jacktech24/gcmnetworkmanager-android-example/issues/1/comments","events_url":"https://api.github.com/repos/jacktech24/gcmnetworkmanager-android-example/issues/1/events","html_url":"https://github.com/jacktech24/gcmnetworkmanager-android-example/issues/1","id":95162806,"number":1,"title":"some questions about the library: permissions, and try-catch","user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars.githubusercontent.com/u/5357526?v=3","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-15T10:50:16Z","updated_at":"2015-07-15T14:45:01Z","closed_at":"2015-07-15T11:37:32Z","body":"I think you don't need the internet related permissions, and you can use just the boot permission.\r\nAm I correct?\r\nAlso, why do you have a try-catch for the scheduling?"},"comment":{"url":"https://api.github.com/repos/jacktech24/gcmnetworkmanager-android-example/issues/comments/121638319","html_url":"https://github.com/jacktech24/gcmnetworkmanager-android-example/issues/1#issuecomment-121638319","issue_url":"https://api.github.com/repos/jacktech24/gcmnetworkmanager-android-example/issues/1","id":121638319,"user":{"login":"AndroidDeveloperLB","id":5357526,"avatar_url":"https://avatars.githubusercontent.com/u/5357526?v=3","gravatar_id":"","url":"https://api.github.com/users/AndroidDeveloperLB","html_url":"https://github.com/AndroidDeveloperLB","followers_url":"https://api.github.com/users/AndroidDeveloperLB/followers","following_url":"https://api.github.com/users/AndroidDeveloperLB/following{/other_user}","gists_url":"https://api.github.com/users/AndroidDeveloperLB/gists{/gist_id}","starred_url":"https://api.github.com/users/AndroidDeveloperLB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndroidDeveloperLB/subscriptions","organizations_url":"https://api.github.com/users/AndroidDeveloperLB/orgs","repos_url":"https://api.github.com/users/AndroidDeveloperLB/repos","events_url":"https://api.github.com/users/AndroidDeveloperLB/events{/privacy}","received_events_url":"https://api.github.com/users/AndroidDeveloperLB/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T14:45:01Z","updated_at":"2015-07-15T14:45:01Z","body":"Not even Android version? Too bad.\r\nI've noticed you wrote this in code:\r\n\r\n     //executed between 0 - 10s from now\r\n    .setExecutionWindow(30, 60)\r\n\r\nWhat is going on here? I've seen a different calculation here  https://developers.google.com/cloud-messaging/network-manager  :\r\n\r\n    long startSecs = 0L; // allow for execution of the task as soon as possible (0s from now)\r\n    long endSecs = startSecs + 3600L; // task will be run within 1 min of start time\r\n\r\nSo, if 1 minute is 3600, a single second should be 60 ?!\r\n\r\nI think both are wrong, as the docs say it's about seconds:\r\nhttps://developers.google.com/android/reference/com/google/android/gms/gcm/OneoffTask.Builder#setExecutionWindow(long, long)"}}