Firebase powers push notifications and optional Google Analytics for the MemberPress App. With Firebase, you can send native push notifications to Android and iOS users, and track user engagement through Analytics if enabled. This guide explains how to create a Firebase project, register iOS and Android apps, configure Cloud Messaging for push notifications, and optionally enable Google Analytics.
Understanding Firebase Integration
Firebase integration provides backend services for push notification delivery and analytics tracking across mobile platforms.
Push notification delivery enables real-time message distribution to Android and iOS devices. Firebase Cloud Messaging handles notification routing and delivery to member devices.
Analytics tracking monitors user engagement and behavior within the application. Google Analytics integration provides insights into member activity and app usage patterns.
Cross-platform support enables unified notification management for iOS and Android. A single Firebase project manages both platform integrations simultaneously.
Configuration flexibility allows for optional Analytics enablement based on tracking needs. Analytics can be enabled or disabled during project creation or later.
Creating Firebase Project
Firebase project creation establishes the foundation for push notification and analytics services.
- Go to Firebase Console.
- Click Create project.

- Enter a Project name and click Continue.

- To enable Analytics, leave Enable Google Analytics for this project checked.
- To skip Analytics, uncheck the option and click Continue.
- If Analytics is enabled, select an existing account or create a new one, then click Continue.
- Click Create project and wait for initialization.
- Click Continue to open your project's dashboard.
Registering iOS App
iOS app registration connects the MemberPress App to Firebase for push notification delivery.
- In the Firebase project overview, click the + Add App.

- Select the iOS icon under Get started by adding Firebase to your app.

- Enter your iOS app's Bundle ID (must match your Xcode project).
- Optionally enter an App nickname and App Store ID.

- Click the Register app.
- Download the GoogleService-Info.plist file and add it to your Xcode project.
- Follow the CocoaPods integration instructions provided, then click Continue to console.
Registering Android App
Android app registration connects the MemberPress App to Firebase for push notification delivery.
- Click the Android icon under Get started by adding Firebase to your app.

- Enter your Android Package name.
- Optionally add an App nickname.

- Click the Register app.
- Download the google-services.json file and place it in your /app/ module directory.
- Add the Firebase SDK dependencies in your Gradle files as instructed, then click Continue to console.
Configuring Push Notifications
Push notification configuration enables the Cloud Messaging service for Android and iOS platforms.
- In Firebase Console, click the gear icon > Project settings.

- Select the Cloud Messaging tab.

For Android
- Copy the Server key displayed in the Cloud Messaging section.
- Copy the Sender ID displayed in the Cloud Messaging section.
For iOS (APNs)
- Under APNs certificates, click Upload.
- Upload your .p8 key file.
- Enter the Key ID in the Key ID field.
- Enter your Team ID in the Team ID field.
- Click Save.
Enabling Google Analytics
Google Analytics enablement provides user engagement tracking and behavior monitoring within the application.
- In Firebase Console, go to Analytics > Dashboard to verify data collection.

- In WordPress Admin, navigate to Dashboard > MP App > Settings > Integrations > Firebase.
- Toggle on Enable Firebase Analytics.
- Enter your Firebase Project ID in the Project ID field.
- Click Save Changes.