{"action":"created","issue":{"url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41","repository_url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin","labels_url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41/comments","events_url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41/events","html_url":"https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41","id":236949718,"number":41,"title":"Plugin not working on some devices","user":{"login":"rex79","id":200989,"avatar_url":"https://avatars1.githubusercontent.com/u/200989?v=4","gravatar_id":"","url":"https://api.github.com/users/rex79","html_url":"https://github.com/rex79","followers_url":"https://api.github.com/users/rex79/followers","following_url":"https://api.github.com/users/rex79/following{/other_user}","gists_url":"https://api.github.com/users/rex79/gists{/gist_id}","starred_url":"https://api.github.com/users/rex79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rex79/subscriptions","organizations_url":"https://api.github.com/users/rex79/orgs","repos_url":"https://api.github.com/users/rex79/repos","events_url":"https://api.github.com/users/rex79/events{/privacy}","received_events_url":"https://api.github.com/users/rex79/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-06-19T16:34:28Z","updated_at":"2017-08-23T14:16:27Z","closed_at":null,"body":"Hi, is there a settings on android that will prevent the plugin from work?\r\nI've try with different device and I put this code on my app.component.ts:\r\n\r\n  platform.ready().then(() => {\r\n      // Okay, so the platform is ready and our plugins are available.\r\n      // Here you can do any higher level native things you might need.\r\n      Splashscreen.hide();\r\n      StatusBar.styleDefault();\r\n\r\n      Insomnia.keepAwake().then(\r\n        () => console.log('non dormo'),\r\n        () => console.log('errore, dormo')\r\n      );\r\n\r\n(I'm using ionic 2) and on some device it work, on other no.\r\n\r\nIs this the right way to call it or there are some sort of Android settings that will block the plugin?\r\n\r\nThanks a lot"},"comment":{"url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/comments/324347432","html_url":"https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41#issuecomment-324347432","issue_url":"https://api.github.com/repos/EddyVerbruggen/Insomnia-PhoneGap-Plugin/issues/41","id":324347432,"user":{"login":"AgDude","id":1122519,"avatar_url":"https://avatars1.githubusercontent.com/u/1122519?v=4","gravatar_id":"","url":"https://api.github.com/users/AgDude","html_url":"https://github.com/AgDude","followers_url":"https://api.github.com/users/AgDude/followers","following_url":"https://api.github.com/users/AgDude/following{/other_user}","gists_url":"https://api.github.com/users/AgDude/gists{/gist_id}","starred_url":"https://api.github.com/users/AgDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgDude/subscriptions","organizations_url":"https://api.github.com/users/AgDude/orgs","repos_url":"https://api.github.com/users/AgDude/repos","events_url":"https://api.github.com/users/AgDude/events{/privacy}","received_events_url":"https://api.github.com/users/AgDude/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T14:16:27Z","updated_at":"2017-08-23T14:16:27Z","body":"I can confirm that we are running into this as well. I will investigate in more detail later today. The device I confirmed this on was Galaxy S5 with Android 6.0.1 and webview version 60.0.3112.107"}}
{"actor":{"display_login":"AgDude"}}