{"action":"closed","issue":{"url":"https://api.github.com/repos/firebase/firebase-ios-sdk/issues/1409","repository_url":"https://api.github.com/repos/firebase/firebase-ios-sdk","labels_url":"https://api.github.com/repos/firebase/firebase-ios-sdk/issues/1409/labels{/name}","comments_url":"https://api.github.com/repos/firebase/firebase-ios-sdk/issues/1409/comments","events_url":"https://api.github.com/repos/firebase/firebase-ios-sdk/issues/1409/events","html_url":"https://github.com/firebase/firebase-ios-sdk/issues/1409","id":332409346,"node_id":"MDU6SXNzdWUzMzI0MDkzNDY=","number":1409,"title":"FR: Provide data messages delivered by APNs via FIRMessagingDelegate","user":{"login":"wnagrodzki","id":278594,"node_id":"MDQ6VXNlcjI3ODU5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/278594?v=4","gravatar_id":"","url":"https://api.github.com/users/wnagrodzki","html_url":"https://github.com/wnagrodzki","followers_url":"https://api.github.com/users/wnagrodzki/followers","following_url":"https://api.github.com/users/wnagrodzki/following{/other_user}","gists_url":"https://api.github.com/users/wnagrodzki/gists{/gist_id}","starred_url":"https://api.github.com/users/wnagrodzki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wnagrodzki/subscriptions","organizations_url":"https://api.github.com/users/wnagrodzki/orgs","repos_url":"https://api.github.com/users/wnagrodzki/repos","events_url":"https://api.github.com/users/wnagrodzki/events{/privacy}","received_events_url":"https://api.github.com/users/wnagrodzki/received_events","type":"User","site_admin":false},"labels":[{"id":612415525,"node_id":"MDU6TGFiZWw2MTI0MTU1MjU=","url":"https://api.github.com/repos/firebase/firebase-ios-sdk/labels/Messaging","name":"Messaging","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":{"login":"chliangGoogle","id":27706281,"node_id":"MDQ6VXNlcjI3NzA2Mjgx","avatar_url":"https://avatars2.githubusercontent.com/u/27706281?v=4","gravatar_id":"","url":"https://api.github.com/users/chliangGoogle","html_url":"https://github.com/chliangGoogle","followers_url":"https://api.github.com/users/chliangGoogle/followers","following_url":"https://api.github.com/users/chliangGoogle/following{/other_user}","gists_url":"https://api.github.com/users/chliangGoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/chliangGoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chliangGoogle/subscriptions","organizations_url":"https://api.github.com/users/chliangGoogle/orgs","repos_url":"https://api.github.com/users/chliangGoogle/repos","events_url":"https://api.github.com/users/chliangGoogle/events{/privacy}","received_events_url":"https://api.github.com/users/chliangGoogle/received_events","type":"User","site_admin":false},"assignees":[{"login":"chliangGoogle","id":27706281,"node_id":"MDQ6VXNlcjI3NzA2Mjgx","avatar_url":"https://avatars2.githubusercontent.com/u/27706281?v=4","gravatar_id":"","url":"https://api.github.com/users/chliangGoogle","html_url":"https://github.com/chliangGoogle","followers_url":"https://api.github.com/users/chliangGoogle/followers","following_url":"https://api.github.com/users/chliangGoogle/following{/other_user}","gists_url":"https://api.github.com/users/chliangGoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/chliangGoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chliangGoogle/subscriptions","organizations_url":"https://api.github.com/users/chliangGoogle/orgs","repos_url":"https://api.github.com/users/chliangGoogle/repos","events_url":"https://api.github.com/users/chliangGoogle/events{/privacy}","received_events_url":"https://api.github.com/users/chliangGoogle/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-06-14T13:43:49Z","updated_at":"2018-10-30T20:53:28Z","closed_at":"2018-10-30T20:53:28Z","author_association":"NONE","body":"### Environment\r\n\r\n  * Xcode version: Version 9.4 (9F1027a)\r\n  * Firebase SDK version: 5.2.0\r\n  * Firebase Component: Messaging\r\n  * Component version: 3.0.2\r\n\r\n### Feature Proposal\r\n\r\nI have noticed that data messages with the content-available flag set to yes are always delivered via APNs.\r\nHowever with the current state of Firebase API, we are forced to handle those data messages as notifications in `application(_ application:, didReceiveRemoteNotification:, fetchCompletionHandler:)` method.\r\n\r\nWouldn't it be a good idea to make Firebase intercept this notification and deliver via `MessagingDelegate`'s `messaging(_:, didReceive:)` method?\r\n\r\nThis way we would be able to handle all data messages (conveyed via APNs and via direct channel) in one place. Please let me know what you think."}}
{"actor":{"display_login":"chliangGoogle"}}