title: Generate Google Server API Key description: Step-by-step guide to generate Google Server API Key for Android push notifications in Appgain.io keywords: Google Server API Key, Android push notifications, Firebase setup, Appgain.io tags: [Android, push notifications, Firebase, setup] author: Appgain.io Team date: 2024-01-01
Generate Google Server API Key
📚 Related Documentation
- *SDK Integration*: Android SDK | iOS SDK | Flutter SDK
- *Push Setup*: Push Notifications | iOS Push Certificate
- *Setup Guides*: New Project Setup | Dashboard Configuration
Requirements
-
An android mobile app.
-
**Appgain.io Account, if you do not already have one.
-
Android Studio
- Admin Access to firebase
- Sender Id and Server API Key , Appgain don't support JSON file config
Steps
- **Open Firebase console, Go to project settings
- Go to Cloud Messaging tab and copy SenderID and Legacy server key
-
Open Appgain dashboard**
-
Go to Settings > Basic Settings/Communication Channels
-
Navigate to Android push tab
-
Enter your SenderID and Server key
-
finally open manifest.xml file and add the following lines:
<service>
android:name="com.parse.fcm.ParseFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
<receiver android:name="io.appgain.sdk.controller.AppGainPushReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
Last updated: August 2, 2025 17:02:42