Firebase Notification Integration - iOS Setup
Creating a Firebase Project
Follow the steps to create a Firebase project.
Step 1: Sign in to Firebase
Go to Firebase (opens in a new tab) and sign in with your Google account:
Step 2: Create a New Project
Click Add Project, enter a project name, and continue.
Step 3: Continue Setup
Click Continue.
Step 4: Select Analytics Account
Choose the default Firebase account (or create a new one) and click Create Project.
Step 5: Open Project Dashboard
Once the project is created, click Continue.
Add an iOS App to Firebase
Step 1: Add an iOS App
Click the iOS+ icon.
Step 2: Enter Bundle ID
Enter your Apple Bundle ID and click Register App.
Step 3: Download GoogleService-Info.plist
Download the configuration file.
Keep the GoogleService-Info.plist file safe. It will be required later.
Step 4: Skip SDK Configuration
The native Firebase SDK setup is already handled by WebToNative.
Click Next and then Continue to Console.
Step 5: Verify App Creation
Your newly created iOS application should now appear in the Firebase dashboard.
Configure Firebase for APNs
Step 1: Open Project Settings
Click the settings icon.
Step 2: Manage Apps
You can manage all apps associated with the Firebase project here.
Step 3: Locate Your Apps
Scroll to the Your Apps section.
Generate APNs Authentication Key
Firebase Cloud Messaging uses Apple Push Notification Service (APNs).
Step 1: Create a New Key
Click the + button.
Step 2: Configure Key
Enter a key name and enable Apple Push Notifications Service (APNs).
Step 3: Register Key
Click Register.
Step 4: Download Key
Download the generated .p8 file.
The APNs key can only be downloaded once. Store it securely and keep a backup.
Upload APNs Key to Firebase
Step 1: Add Team ID
Copy your Apple Developer Team ID and save it in Firebase.
Step 2: Open Cloud Messaging
Navigate to:
Project Settings → Cloud Messaging
Scroll to Apple App Configuration.
Step 3: Upload APNs Key
Click Upload.
Step 4: Select .p8 File
Upload the previously downloaded .p8 file.
Find the Key ID
Step 1: Return to Apple Developer Portal (opens in a new tab)
Step 2: Open the APNs Key
Click the key you created.
Step 3: Copy Key ID
Copy the displayed Key ID.
Step 4: Complete Upload
Paste the Key ID into Firebase and click Upload.
Upload GoogleService-Info.plist
Upload the GoogleService-Info.plist file downloaded earlier.
You can also download it again from:
-
Firebase → Project Settings → General
-
Finally, click Save and Submit for App Build.
Firebase Cloud Messaging has now been configured for your iOS application.
Additional Documentation
For the complete documentation index, Visit (opens in a new tab)
Markdown versions of documentation pages are available by appending .md to the URL.
Example:
https://docs.webtonative.com/plugin/firebase-notification-integration-ios-setup.md
