{"action":"created","issue":{"url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node/issues/8","repository_url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node","labels_url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node/issues/8/comments","events_url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node/issues/8/events","html_url":"https://github.com/Saber-Tecnologias/fcm-node/issues/8","id":181708020,"number":8,"title":"[iOS] notification not received although it's successfully sent (\"success\":1)","user":{"login":"antoinerousseau","id":160279,"avatar_url":"https://avatars.githubusercontent.com/u/160279?v=3","gravatar_id":"","url":"https://api.github.com/users/antoinerousseau","html_url":"https://github.com/antoinerousseau","followers_url":"https://api.github.com/users/antoinerousseau/followers","following_url":"https://api.github.com/users/antoinerousseau/following{/other_user}","gists_url":"https://api.github.com/users/antoinerousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/antoinerousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoinerousseau/subscriptions","organizations_url":"https://api.github.com/users/antoinerousseau/orgs","repos_url":"https://api.github.com/users/antoinerousseau/repos","events_url":"https://api.github.com/users/antoinerousseau/events{/privacy}","received_events_url":"https://api.github.com/users/antoinerousseau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T16:05:22Z","updated_at":"2016-10-07T16:12:27Z","closed_at":"2016-10-07T16:12:27Z","body":"I have installed my new app on my iPhone 5s using Xcode, and the FCM registration token is successfully given to me when I start the app.\r\nWhen I use this token in the Firebase console (console.firebase.google.com), it works!\r\nBut when I send it with `fcm-node`, it doesn't :/\r\nNote that my config is working for Android.\r\nThis is my test code:\r\n```js\r\nconst to = '<FCM registration token of my device goes here>'\r\n\r\nconst notification = {\r\n  title: 'test 4',\r\n  body: 'test 4',\r\n}\r\n\r\nconst payload = {\r\n  to,\r\n  notification,\r\n  priority: 'high',\r\n  content_available: true, // tried without too\r\n}\r\n\r\nconsole.log('Sending to', to)\r\n\r\nfcm.send(payload, (error, response) => {\r\n  if (error) {\r\n    console.error('Notification error:', error)\r\n  } else {\r\n    console.log('Notification sent:', response)\r\n  }\r\n})\r\n\r\n```\r\n\r\nAnd I get:\r\n\r\n```\r\nSending to <token>\r\nNotification sent: {\"multicast_id\":8677751413683945576,\"success\":1,\"failure\":0,\"canonical_ids\":0,\"results\":[{\"message_id\":\"0:1475855513649189%f587d512f587d512\"}]}\r\n```\r\n\r\nBut nothing arrives on the phone! (I have tried with the app in the background as well as killed)\r\nAgain, I do receive the ones sent through the Firebase console, so my setup is correct imo...\r\n"},"comment":{"url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node/issues/comments/252294459","html_url":"https://github.com/Saber-Tecnologias/fcm-node/issues/8#issuecomment-252294459","issue_url":"https://api.github.com/repos/Saber-Tecnologias/fcm-node/issues/8","id":252294459,"user":{"login":"antoinerousseau","id":160279,"avatar_url":"https://avatars.githubusercontent.com/u/160279?v=3","gravatar_id":"","url":"https://api.github.com/users/antoinerousseau","html_url":"https://github.com/antoinerousseau","followers_url":"https://api.github.com/users/antoinerousseau/followers","following_url":"https://api.github.com/users/antoinerousseau/following{/other_user}","gists_url":"https://api.github.com/users/antoinerousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/antoinerousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoinerousseau/subscriptions","organizations_url":"https://api.github.com/users/antoinerousseau/orgs","repos_url":"https://api.github.com/users/antoinerousseau/repos","events_url":"https://api.github.com/users/antoinerousseau/events{/privacy}","received_events_url":"https://api.github.com/users/antoinerousseau/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T16:12:27Z","updated_at":"2016-10-07T16:12:27Z","body":"My bad, I had a typo in the code so the priority wasn't set (in my case it must be set...)"}}
{"actor":{"display_login":"antoinerousseau"}}