{"action":"opened","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/944","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/944/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/944/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/944/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/944","id":157544410,"number":944,"title":"Android Notifications Failing: Documentation Required","user":{"login":"nickos333","id":592629,"avatar_url":"https://avatars.githubusercontent.com/u/592629?v=3","gravatar_id":"","url":"https://api.github.com/users/nickos333","html_url":"https://github.com/nickos333","followers_url":"https://api.github.com/users/nickos333/followers","following_url":"https://api.github.com/users/nickos333/following{/other_user}","gists_url":"https://api.github.com/users/nickos333/gists{/gist_id}","starred_url":"https://api.github.com/users/nickos333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickos333/subscriptions","organizations_url":"https://api.github.com/users/nickos333/orgs","repos_url":"https://api.github.com/users/nickos333/repos","events_url":"https://api.github.com/users/nickos333/events{/privacy}","received_events_url":"https://api.github.com/users/nickos333/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-30T18:49:41Z","updated_at":"2016-05-30T18:49:41Z","closed_at":null,"body":"### Expected Behaviour\r\n\r\nFantastic plugin. I think it needs some documentation on setting the correct Content-Security-Policy to ensure plugins are received on Android devices. I grappled for several days trying to get notifications to arrive on various Android devices (emulators and physical devices) before realising that the absence of a correct Content-Security-Policy meta tag in my index.html file was the culprit.\r\n\r\nUsing the spec provided by an on-line example (shown below) caused notifications to arrive again on Android devices:\r\n\r\n<meta http-equiv=\"Content-Security-Policy\" content=\"default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *\" />\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\n\r\nAndroid / Lollipop and Marshmallow\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\n\r\nVarious\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova #6.0.0\r\n    cordova platform version android                     #5.1.1"}}
{"actor":{"display_login":"nickos333"}}