{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/258","repository_url":"https://api.github.com/repos/firebase/firebase-admin-node","labels_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/258/comments","events_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/258/events","html_url":"https://github.com/firebase/firebase-admin-node/issues/258","id":315714350,"node_id":"MDU6SXNzdWUzMTU3MTQzNTA=","number":258,"title":"Notification Channel for Android O","user":{"login":"mdgagne","id":1120415,"node_id":"MDQ6VXNlcjExMjA0MTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1120415?v=4","gravatar_id":"","url":"https://api.github.com/users/mdgagne","html_url":"https://github.com/mdgagne","followers_url":"https://api.github.com/users/mdgagne/followers","following_url":"https://api.github.com/users/mdgagne/following{/other_user}","gists_url":"https://api.github.com/users/mdgagne/gists{/gist_id}","starred_url":"https://api.github.com/users/mdgagne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdgagne/subscriptions","organizations_url":"https://api.github.com/users/mdgagne/orgs","repos_url":"https://api.github.com/users/mdgagne/repos","events_url":"https://api.github.com/users/mdgagne/events{/privacy}","received_events_url":"https://api.github.com/users/mdgagne/received_events","type":"User","site_admin":false},"labels":[{"id":660493745,"node_id":"MDU6TGFiZWw2NjA0OTM3NDU=","url":"https://api.github.com/repos/firebase/firebase-admin-node/labels/component:%20messaging","name":"component: messaging","color":"fbca04","default":false},{"id":617868797,"node_id":"MDU6TGFiZWw2MTc4Njg3OTc=","url":"https://api.github.com/repos/firebase/firebase-admin-node/labels/feature-request","name":"feature-request","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"sampson-chen","id":2019562,"node_id":"MDQ6VXNlcjIwMTk1NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2019562?v=4","gravatar_id":"","url":"https://api.github.com/users/sampson-chen","html_url":"https://github.com/sampson-chen","followers_url":"https://api.github.com/users/sampson-chen/followers","following_url":"https://api.github.com/users/sampson-chen/following{/other_user}","gists_url":"https://api.github.com/users/sampson-chen/gists{/gist_id}","starred_url":"https://api.github.com/users/sampson-chen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampson-chen/subscriptions","organizations_url":"https://api.github.com/users/sampson-chen/orgs","repos_url":"https://api.github.com/users/sampson-chen/repos","events_url":"https://api.github.com/users/sampson-chen/events{/privacy}","received_events_url":"https://api.github.com/users/sampson-chen/received_events","type":"User","site_admin":false},"assignees":[{"login":"sampson-chen","id":2019562,"node_id":"MDQ6VXNlcjIwMTk1NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2019562?v=4","gravatar_id":"","url":"https://api.github.com/users/sampson-chen","html_url":"https://github.com/sampson-chen","followers_url":"https://api.github.com/users/sampson-chen/followers","following_url":"https://api.github.com/users/sampson-chen/following{/other_user}","gists_url":"https://api.github.com/users/sampson-chen/gists{/gist_id}","starred_url":"https://api.github.com/users/sampson-chen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampson-chen/subscriptions","organizations_url":"https://api.github.com/users/sampson-chen/orgs","repos_url":"https://api.github.com/users/sampson-chen/repos","events_url":"https://api.github.com/users/sampson-chen/events{/privacy}","received_events_url":"https://api.github.com/users/sampson-chen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-04-19T03:23:22Z","updated_at":"2018-12-11T23:25:16Z","closed_at":"2018-12-11T23:25:16Z","author_association":"NONE","body":"  * Operating System version: Ubuntu 16.04\r\n  * Firebase SDK version: 5.12\r\n  * Library version: 5.12\r\n  * Firebase Product: messaging\r\n\r\nI want to send a push notification to a specific android notification channel, as described here:\r\nhttps://developer.android.com/guide/topics/ui/notifiers/notifications.html#ManageChannels\r\n\r\n#### Steps to reproduce:\r\n`Error: Invalid JSON payload received. Unknown name \"android_channel_id\"` when calling admin.messaging ().send () with the following payload\r\n```\r\nlet pushMessage = {\r\n    notification: {\r\n      title: title,\r\n      body: body,\r\n    },\r\n    android: {\r\n      \"notification\": {\r\n        \"title\": title,\r\n        \"body\": body,\r\n        \"sound\": \"mysound\",\r\n        \"tag\": \"alerts\",\r\n        \"icon\": \"myicon\",\r\n        \"android_channel_id\": \"myalertchannel\",\r\n      }\r\n    }\r\n```\r\nI've tried putting android_channel_id in several different objects of the payload and received the same error. I know that channels are supported because you can set the channel in the firebase console and I've confirmed my phone receive the notification. Am I missing something?"},"comment":{"url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/comments/446401589","html_url":"https://github.com/firebase/firebase-admin-node/issues/258#issuecomment-446401589","issue_url":"https://api.github.com/repos/firebase/firebase-admin-node/issues/258","id":446401589,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjQwMTU4OQ==","user":{"login":"hiranya911","id":2375201,"node_id":"MDQ6VXNlcjIzNzUyMDE=","avatar_url":"https://avatars1.githubusercontent.com/u/2375201?v=4","gravatar_id":"","url":"https://api.github.com/users/hiranya911","html_url":"https://github.com/hiranya911","followers_url":"https://api.github.com/users/hiranya911/followers","following_url":"https://api.github.com/users/hiranya911/following{/other_user}","gists_url":"https://api.github.com/users/hiranya911/gists{/gist_id}","starred_url":"https://api.github.com/users/hiranya911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiranya911/subscriptions","organizations_url":"https://api.github.com/users/hiranya911/orgs","repos_url":"https://api.github.com/users/hiranya911/repos","events_url":"https://api.github.com/users/hiranya911/events{/privacy}","received_events_url":"https://api.github.com/users/hiranya911/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T23:25:16Z","updated_at":"2018-12-11T23:25:16Z","author_association":"MEMBER","body":"This has been implemented. Will be included in the next release."}}
{"actor":{"display_login":"hiranya911"}}