{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications/issues/177","repository_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications","labels_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications/issues/177/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications/issues/177/events","html_url":"https://github.com/EddyVerbruggen/nativescript-local-notifications/issues/177","id":515329810,"node_id":"MDU6SXNzdWU1MTUzMjk4MTA=","number":177,"title":"Can't enable by method requestPermission notifications on android.","user":{"login":"ezlo-anatoliiv","id":51081671,"node_id":"MDQ6VXNlcjUxMDgxNjcx","avatar_url":"https://avatars0.githubusercontent.com/u/51081671?v=4","gravatar_id":"","url":"https://api.github.com/users/ezlo-anatoliiv","html_url":"https://github.com/ezlo-anatoliiv","followers_url":"https://api.github.com/users/ezlo-anatoliiv/followers","following_url":"https://api.github.com/users/ezlo-anatoliiv/following{/other_user}","gists_url":"https://api.github.com/users/ezlo-anatoliiv/gists{/gist_id}","starred_url":"https://api.github.com/users/ezlo-anatoliiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezlo-anatoliiv/subscriptions","organizations_url":"https://api.github.com/users/ezlo-anatoliiv/orgs","repos_url":"https://api.github.com/users/ezlo-anatoliiv/repos","events_url":"https://api.github.com/users/ezlo-anatoliiv/events{/privacy}","received_events_url":"https://api.github.com/users/ezlo-anatoliiv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-31T10:42:58Z","updated_at":"2019-10-31T11:09:52Z","closed_at":null,"author_association":"NONE","body":"Can't enable by method requestPermission notifications on android.\r\nIt is returning always `true` even the notifications are disabled.\r\n\r\n```\r\nrequestPermission() {\r\n    return new Promise((resolve, reject) => {\r\n      try {\r\n          resolve(true)\r\n      } catch (ex) {\r\n        console.log(\"Error in LocalNotifications.requestPermission: \" + ex);\r\n        reject(ex);\r\n      }\r\n    });\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications/issues/comments/548320132","html_url":"https://github.com/EddyVerbruggen/nativescript-local-notifications/issues/177#issuecomment-548320132","issue_url":"https://api.github.com/repos/EddyVerbruggen/nativescript-local-notifications/issues/177","id":548320132,"node_id":"MDEyOklzc3VlQ29tbWVudDU0ODMyMDEzMg==","user":{"login":"EddyVerbruggen","id":1426370,"node_id":"MDQ6VXNlcjE0MjYzNzA=","avatar_url":"https://avatars1.githubusercontent.com/u/1426370?v=4","gravatar_id":"","url":"https://api.github.com/users/EddyVerbruggen","html_url":"https://github.com/EddyVerbruggen","followers_url":"https://api.github.com/users/EddyVerbruggen/followers","following_url":"https://api.github.com/users/EddyVerbruggen/following{/other_user}","gists_url":"https://api.github.com/users/EddyVerbruggen/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyVerbruggen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyVerbruggen/subscriptions","organizations_url":"https://api.github.com/users/EddyVerbruggen/orgs","repos_url":"https://api.github.com/users/EddyVerbruggen/repos","events_url":"https://api.github.com/users/EddyVerbruggen/events{/privacy}","received_events_url":"https://api.github.com/users/EddyVerbruggen/received_events","type":"User","site_admin":false},"created_at":"2019-10-31T11:09:52Z","updated_at":"2019-10-31T11:09:52Z","author_association":"OWNER","body":"I don’t think you can actually request permission if the user disabled them manually. But what we could do is returning the result of “hasPermission” instead. Would that help?"}}
{"actor":{"display_login":"EddyVerbruggen"}}