Proem Sports Documentation
  • FUNDAMENTALS
    • Getting Started
      • Platform Overview
      • Fans
      • Account setting
        • Settings
        • Do Not Disturb (DND)
        • Frequency capping
      • Integrations
        • Web tracker
        • App Tracker
        • Setting up email service provider
          • Setting Up SendGrid as the Email Service Provider on Organon
          • Setting Up Mailjet as the Email Service Provider on Organon
        • Web push soft ask integration
        • Push notification integration
          • Setting Up Android Push Notifications
          • Setting Up iOS Push Notifications
          • Setting Up Web Push Notifications
      • File upload
        • How to upload files in Organon
      • Analytics
      • Social Media & Benchmarking
      • Segments
      • Marketing
        • Email
        • WhatsApp
        • Push Notifications
        • SMS
      • Forms
  • Segment creation
    • Segment operators
      • Working with groups
    • Finalising the segment
    • Saving the segment
    • Managing a segment
    • Segment overview
    • Syncing with Meta Custom audiences
  • Steps to Using Email
    • Email campaign set up
    • Desiging Email campaigns
    • Audience and Scheduling
    • Review and Publish
  • WhatsApp campaign set-up
    • Creating a WhatsApp campaign
    • Setting Up the Campaign Content
    • Audience and Scheduling
    • Review and Publish
    • Campaign reports
  • SMS campaign set-up
    • Creating a SMS campaign
    • Audience and Scheduling
    • Review and Publish
    • Campaign Reports
  • Push notification campaign set-up
  • Push notification campaign process
  • Campaign reports
    • Email Campaign Report
    • Push Notification Campaign Report
  • Forms
    • Form set-up
    • Form design
    • Form save and publishing
    • Form reports
Powered by GitBook
On this page
  • Setting Up iOS Push Notifications with Firebase Cloud Messaging (FCM)
  • Overview
  • Prerequisites
  • Step 1: Create a Firebase Project
  • Step 2: Register Your iOS App in Firebase
  • Step 3: Download and Add GoogleService-Info.plist
  • Step 4: Enable Push Notifications in Xcode
  • Step 5: Configure APNs Authentication Key in Firebase
  • Step 6: Add Firebase Messaging SDK to Your iOS App
  • Step 7: Test Push Notifications
  • Step 8: Configure Firebase in Organon
  • Step 9: Deploy and Monitor Push Notifications
  • Troubleshooting
  1. FUNDAMENTALS
  2. Getting Started
  3. Integrations
  4. Push notification integration

Setting Up iOS Push Notifications

PreviousSetting Up Android Push NotificationsNextSetting Up Web Push Notifications

Last updated 3 months ago

Setting Up iOS Push Notifications with Firebase Cloud Messaging (FCM)

Overview

This guide provides step-by-step instructions to set up iOS Push Notifications using Firebase Cloud Messaging (FCM). By following these steps, users can enable push notifications in their iOS app and integrate FCM for seamless message delivery.


Prerequisites

Before proceeding, ensure you have:

  • An active Apple Developer Account.

  • Xcode installed on your system.

  • A registered iOS app in Firebase.


Step 1: Create a Firebase Project

  1. Click Add Project.

  2. Enter your project name and click Continue.

  3. (Optional) Enable Google Analytics for your project.

  4. Click Create Project and wait for the setup to complete.


Step 2: Register Your iOS App in Firebase

  1. In Firebase Console, open your project.

  2. Click the Settings (⚙️) > Project Settings.

  3. Under the General tab, scroll to Your Apps.

  4. Click Add App > iOS.

  5. Enter your iOS bundle ID (from Info.plist).

  6. (Optional) Add an App Nickname.

  7. Click Register App.


Step 3: Download and Add GoogleService-Info.plist

  1. After registering the app, click Download GoogleService-Info.plist.

  2. Move this file to your iOS project: Place it in the root directory of your Xcode project.

  3. Open Xcode and ensure the file is added to the correct targets.


Step 4: Enable Push Notifications in Xcode

  1. Open Xcode and navigate to Signing & Capabilities.

  2. Click + Capability and select Push Notifications.

  3. Add the Background Modes capability and check Remote Notifications.


Step 5: Configure APNs Authentication Key in Firebase

  1. Navigate to Certificates, Identifiers & Profiles.

  2. Select Keys and create a new key.

  3. Enable Apple Push Notifications service (APNs) and click Continue.

  4. Download the .p8 key file and note the Key ID.

  5. In Firebase Console, go to Project Settings > Cloud Messaging.

  6. Upload the .p8 file and enter:

    • Key ID (from Apple Developer Console).

    • Team ID (from Apple Developer Account).

    • Bundle ID (from Xcode project).

  7. Save the settings.


Step 6: Add Firebase Messaging SDK to Your iOS App

  1. Open your Podfile and add: pod 'Firebase/Messaging'

pod 'Firebase/Messaging'
  1. Run pod install in the terminal.

  2. Open AppDelegate.swift and import Firebase:

import Firebase
import FirebaseMessaging
  1. Configure Firebase in application (_:didFinishLaunchingWithOptions:):

FirebaseApp.configure()
  1. Register for remote notifications:

UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { granted, error in
    print("Permission granted: \(granted)")
}
UIApplication.shared.registerForRemoteNotifications()
  1. Implement MessagingDelegate to handle the FCM token:

extension AppDelegate: MessagingDelegate {
    func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String?) {
        print("FCM Token: \(fcmToken ?? "")")
    }
}

Step 7: Test Push Notifications

Obtain Firebase Cloud Messaging Token

  1. Run your app on a real iOS device (not a simulator).

  2. Check the Xcode console for the FCM token.

  3. Copy the token for testing.

Send a Test Notification from Firebase Console

  1. Go to Firebase Console > Cloud Messaging.

  2. Click Send your first message.

  3. Enter a notification title and message.

  4. Select Send to a test device.

  5. Paste the copied FCM token.

  6. Click Send Message and check if the notification appears on the device.


Step 8: Configure Firebase in Organon

To send notifications from Organon, users must upload their APNs credentials.

  1. Open Organon and navigate to Push Notification Settings.

  2. Select the iOS tab.

  3. Enter the following details:

  • Team ID (from Apple Developer Portal)

  • Key ID (from Apple Developer Portal)

  • Bundle ID (from Xcode project settings)

  1. Upload the .p8 file.

  2. Click Enable iOS Push Configuration.

  3. Save the configuration.


Step 9: Deploy and Monitor Push Notifications

Once testing is successful:

  • Use Organon’s campaign feature to send push notifications.

  • Monitor delivery rates and engagement using Organon’s analytics dashboard.

  • Optimize message content for better user interaction.


Troubleshooting

  • Ensure GoogleService-Info.plist is correctly placed in Organon’s settings.

  • Verify the Firebase project is set to allow push notifications.

  • Check Organon’s notification logs for errors.

  • Ensure the device has internet connectivity.

Following these steps will enable push notifications via Firebase Cloud Messaging and allow sending notifications directly from Organon.

A Firebase project set up in the.

Go to.

Sign in to the.

Firebase Console
Firebase Console
Apple Developer Console