Register your Android app with Blueshift
Steps to retrieve your Firebase credentials and configure a push channel in the Blueshift dashboard.
To send push notifications, you must register your app as a channel in Blueshift. This requires credentials from your Firebase project.
1. Get Firebase Credentials
Follow these steps to download your service account private key JSON file from Firebase:
- Log in to the Firebase console.
- Open the project that corresponds to your app. Ensure you use the same project that is already connected to your app.
- Click the gear icon ⚙️ next to Project overview and choose Project settings.
- Go to the Service accounts tab.
- Click Generate new private key, then confirm with Generate Key.
- The JSON key file will download to your computer. Store it securely and do not share it publicly. You’ll need this file when setting up your push channel in Blueshift.
2. Set up a Push Channel in Blueshift
Once you have the JSON file, register your app in the Blueshift dashboard:
- Sign in to the Blueshift dashboard:
- From the left navigation menu, go to Apps > App Hub.
- Search for and select Blueshift Push, or go to Mobile Marketing Apps and select Blueshift Push.
- Click Configure to open the adapter settings.
Account types
Your account may be set up as a single-app or multi-app account. The options available for creating adapters will vary accordingly:
- Single-App accounts: You can create only one adapter per platform (Android/iOS). The same adapter can hold both Firebase (Android) and Apple Push (iOS) credentials.
- Multi-App accounts: You can create multiple adapters. Use +ADAPTER to add a new one for each app you want to register.
Enter adapter details
When creating or editing an adapter, provide the following information:
- Adapter Name: A label for the adapter (shown at the top of the form).
- Application Name: A label for your app (for display in Blueshift).
- Package Name: Your app’s unique identifier (
applicationIdfrombuild.gradle). - Authorization Key: Leave blank (not required for Firebase).
- Service account JSON file: Upload the file you downloaded from Firebase.
- Subscription Group (optional): Map users to a subscription group. See the Subscription groups guide.
Finally, click Save. Blueshift will validate the credentials and report any errors that occur. You can optionally set the adapter as the default.
Note: For detailed instructions on configuring the adapter for Blueshift Push, refer to the Blueshift Push integration documentation.
Updated 11 days ago