Ultimately I would like to send custom push notifications when a message is received like What's App. I've been reading the documentation about Firebase Cloud Messaging here. Essentially an HTTP POST request is sent to generate the notification.
https://fcm.googleapis.com/fcm/send
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to" : /topics/foo-bar",
"priority" : "high",
"notification" : {
"body" : "This is a Firebase Cloud Messaging Topic Message!",
"title" : "FCM Message",
}
}
Is it possible to do this client side in Swift?