{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2552","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2552/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2552/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2552/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2552","id":361025544,"node_id":"MDU6SXNzdWUzNjEwMjU1NDQ=","number":2552,"title":"createChannel for Android 8.x.x","user":{"login":"Nick-lab","id":32395162,"node_id":"MDQ6VXNlcjMyMzk1MTYy","avatar_url":"https://avatars0.githubusercontent.com/u/32395162?v=4","gravatar_id":"","url":"https://api.github.com/users/Nick-lab","html_url":"https://github.com/Nick-lab","followers_url":"https://api.github.com/users/Nick-lab/followers","following_url":"https://api.github.com/users/Nick-lab/following{/other_user}","gists_url":"https://api.github.com/users/Nick-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/Nick-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nick-lab/subscriptions","organizations_url":"https://api.github.com/users/Nick-lab/orgs","repos_url":"https://api.github.com/users/Nick-lab/repos","events_url":"https://api.github.com/users/Nick-lab/events{/privacy}","received_events_url":"https://api.github.com/users/Nick-lab/received_events","type":"User","site_admin":false},"labels":[{"id":307723242,"node_id":"MDU6TGFiZWwzMDc3MjMyNDI=","url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/android","name":"android","color":"BFD4F2","default":false},{"id":196374009,"node_id":"MDU6TGFiZWwxOTYzNzQwMDk=","url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-17T20:14:12Z","updated_at":"2018-09-18T13:15:41Z","closed_at":null,"author_association":"NONE","body":"### Expected Behaviour\r\nNotification sound to come through\r\n### Actual Behaviour\r\nDefault sound is used\r\n### Reproduce Scenario (including but not limited to)\r\ncreate notification channel and send from server cannel ID in call with other data\r\n#### Steps to Reproduce \r\n    if (platform.is('android')) {\r\n        var channelId = 'appdefault'; // notification sound never changes\r\n        push.createChannel({\r\n          id: channelId,\r\n          description: \"Reminders\",\r\n          importance: 4, // high importance\r\n          sound: \"presto.wav\"  // was testing if extension mattered did not play with or without '.wav'\r\n        }).then((err: any) => { console.log('Channel created'); });\r\n      }\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nN/A\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nDont have the test Phone with Me will update later.\r\n#### Cordova CLI version and cordova platform version\r\n    ionic: 4.1.0\r\n    cordova: 8.0.0\r\n    cordova platform version android: 7.0.0\r\n\r\n#### Plugin version\r\n    2.2.3 updated to latest\r\n\r\n#### Sample Push Data Payload\r\n        \"pushdata\": {\r\n        \"curl\": \"{\\\"multicast_id\\\":5507833113356609844,\\\"success\\\":1,\\\"failure\\\":0,\\\"canonical_ids\\\":0,\\\"results\\\":[{\\\"message_id\\\":\\\"0:1536937887483559%b8b417bbb8b417bb\\\"}]}\",\r\n        \"fields\": {\r\n          \"app_id\": \"29fb53c9-4752-4978-a0e9-52d49d5484e2\",\r\n          \"to\": \"cMrnxVYjbAA:APA91bHhDdl_9WMWmYnIZQlyl58gZQW0UY2-2xy2XtD2Cco_TagSOVP8L2PtfEF1AjY8hQ1V1IBdaJmUyUiixCJL4kVL0Ci7Upq39uSQpWw6a_zxUU5SB43fW_h4OwM8E8rOQuU94oRn\",\r\n          \"priority\": \"high\",\r\n          \"data\": {\r\n            \"notId\": \"1947\",\r\n            \"info\": {\r\n              \"checkin\": true,\r\n             \"notification\": \"5b9bb7c975e8c\",\r\n              \"message\": \"Hello N, are you OK?\",\r\n              \"push_id\": \"5b9bcfa054487\"\r\n            },\r\n            \"message\": \"Hello N, are you OK?\",\r\n            \"badge\": \"3\",\r\n            \"content-available\": \"1\",\r\n            \"force-start\": \"1\",\r\n            \"no-cache\": \"1\",\r\n            \"soundname\": \"presto\",\r\n            \"android_channel_id\": \"appdefault\",\r\n            \"actions\": [\r\n              {\r\n                \"icon\": \"\",\r\n                \"title\": \"OK\",\r\n                \"callback\": \"checkin\",\r\n                \"foreground\": \"true\"\r\n              }\r\n            ]\r\n          },\r\n          \"notification\": {\r\n            \"body\": \"Hello N, are you OK?\",\r\n            \"sound\": \"presto\",\r\n            \"badge\": \"3\"\r\n          }\r\n        }\r\n      }\r\n#### Sample Code that illustrates the problem\r\n\r\n#### Logs taken while reproducing problem\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/422388707","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/2552#issuecomment-422388707","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/2552","id":422388707,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjM4ODcwNw==","user":{"login":"Nick-lab","id":32395162,"node_id":"MDQ6VXNlcjMyMzk1MTYy","avatar_url":"https://avatars0.githubusercontent.com/u/32395162?v=4","gravatar_id":"","url":"https://api.github.com/users/Nick-lab","html_url":"https://github.com/Nick-lab","followers_url":"https://api.github.com/users/Nick-lab/followers","following_url":"https://api.github.com/users/Nick-lab/following{/other_user}","gists_url":"https://api.github.com/users/Nick-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/Nick-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nick-lab/subscriptions","organizations_url":"https://api.github.com/users/Nick-lab/orgs","repos_url":"https://api.github.com/users/Nick-lab/repos","events_url":"https://api.github.com/users/Nick-lab/events{/privacy}","received_events_url":"https://api.github.com/users/Nick-lab/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T13:15:41Z","updated_at":"2018-09-18T13:15:41Z","author_association":"NONE","body":"@jcesarmobile the notification sound file is in `ProjectFolder\\platforms\\android\\app\\src\\main\\res\\raw\\presto.wav`.\r\n\r\nand @macdonst  yes the file is in a format that can be used by both iOS and Android. this has been tested on earlier Versions of android, and latest version of iOS."}}
{"actor":{"display_login":"Nick-lab"}}