Skip to content

iOS: Not Receiving FCM Push Notifications #4475

Answered by mikehardy
lvillacin asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!
Some thoughts

  • Always test cloud message sends from the command line. You'll want a quick shell script that posts to the FCM REST API using your admin key. That way you know exactly what JSON is going out
  • For iOS make sure you have set content-available key in your JSON, this is in the docs you won't get delivery of data-only payloads without them

Other than that, without seeing exactly what JSON you are sending (minus your API key and the device token, of course) it's impossible to say what's going wrong

My work project uses data-only payloads extensively though and they work, so this will be project or payload specific, as a problem, I think

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lvillacin
Comment options

@mikehardy
Comment options

Answer selected by lvillacin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants