- First, open firebase console and login
- Disable Google Analytics (optional, but recommended for simpler setup)
- Click "Create project" and wait for provisioning to complete
- Click "Continue" to access your project dashboard
For Android
- Click the Android icon on the project overview page
- Enter your Android package name (e.g.,
com.example.myapp) - Add an app nickname (optional)
- Click "Register app"
- Download the
google-services.jsonfile - Place it in your Android app's
app/folder - Install react native firebase packages (/app and /messaging) and also install @notifee package for android foreground push notification
- Setup the firebase in your App.tsx file main file.
- Go to "Messaging" in the left sidebar
- Click "Create your first campaign" → "Firebase Notification messages"
- Enter message title and text
- Click "Send test message"
- Enter your device's registration token
- Click "Test"
For Ios
-
In Firebase Console, click "Add App" → Choose iOS
-
Enter your app's Bundle Identifier (this is case-sensitive and cannot be changed later)
-
Download
GoogleService-Info.plistand move it to your Xcode project root -
Click "+ Capability" and add:
-
Name your key and enable "Apple Push Notifications service (APNs)"
-
Click "Register" and download the
.p8file -
Under "iOS app configuration", click "Upload" for APNs Authentication Key
-
Enter the Key ID (from Apple Developer Portal) and Team ID (from Membership Details)
-
Click "Upload"
- Install react native firebase packages (/app and /messaging) and also install @notifee package for android foreground push notification
- Setup the firebase in your App.tsx file main file.
-
Click "Create your first campaign" → "Firebase Notification messages"