Displaying FCM notifications on iOS Simulators

And here is how we can do it

Create fcm_example.apns file targeted towards your app like below

{
"Simulator Target Bundle": "your.app.identifier",
"aps": {
"alert": "Push-уведомление для симулятора!",
"badge": 1,
"sound": "default"
}
}

Same result with simctl

"gcm.message_id": "0123",

Key-values

For me, adding key-values didn’t quite work but, you can still try you luck. Just add you key-value as below

"some-key": "some-value",
"some-key": "some-value",
{
"Simulator Target Bundle":"----",
"aps":{
"alert":"Push-уведомление для симулятора!",
"badge":1,
"sound":"default"
},
"type":"Какой-то тип",
"id":Какой-то ID,
"gcm.message_id":"20021"
}

References:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store