How To Send Images in The Notification Payload — Firebase

Send an image in the iOS push notification payload using Firebase Cloud Messaging.

Ataberk Turan
3 min readJan 29, 2022

--

Hello everyone!🤟 In this article, we are going to learn how to send images in the notification payload using Swift.

I had published a great tutorial about how to send push notifications on iOS using Firebase Cloud Messaging. This article is the next chapter of that article. Before getting started you should check it out!

If you read this article or already read it, let’s start learning how to send images in the notification payload.

Notification Service Extension

First of all, we need to add a notification service extension to our Xcode project.

Find the “File” section at the top of the Xcode menu. Follow these steps: File -> New -> Target. Then find the “Notification Service Extension” and add this extension into your project.

--

--

Ataberk Turan

Apple Swift Student Challenge 2020 & 2022 Winner. Indie iOS Developer.