Firebase Cloud Messaging Configuration

  • Setup you fire base ios App / download and add the GoogleService-Info.plist
  • install pods
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
  • Fire base Console : setup cloud messaging [ upload .p8 file , team ID , key] that you will get from the Apple App connect when registering for APNs.
    if you don’t know how to do that just read the article and then come back
  • Create an app on the app-store-connect make sure to connect it to the same Bundle Identifier
  • Project > TARGETS > Signing & Capabilities > add [backGround Mode (background fetch , remote notifications ) ]
  • Project > TARGETS > Info, the link that you will add hear you find it in the GoogleService-Info.plist under the name REVERSED_CLIENT_ID
  • create a NotificationController.swift file, (where I got this file from Firebase repo no github, with some modification so it will be easier to setup with the rest of the steps), and past the following cod in it.
  • setup AppDelegate as following:

and voala you every thing is set you can test your notifications from the firebase console

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How I Build clone of (m-commerce) Grofer Application.

Syntropy & Starlink: Testing Results

Reading a Photograph’s Exif Data with Python and Pillow

Setting up a GitHub Webhook

Scraping the Web with Autoscraper

The Evolution of Flutter PlatformView

My Ruby Essentials

relational database planner example

Turning Instant Apps in to Intelligent Instant Apps

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
Abdulmagid Elmaghbub

Abdulmagid Elmaghbub

iOS Developer

More from Medium

Flutter GitHub Actions — A CI/CD pipeline for Flutter apps with GitHub actions, Fastlane and…

Flutter Pills — if your Android or iOS app is not showing the Cloud Messaging notifications in…

Parsing complex JSON in Flutter

Setting up Firebase Auth Custom Domain on Namecheap or GoDaddy