Requirements


  • An android mobile app.

  • Appgain.io Account, if you do not already have one.

  • Android Studio

Steps

  1. Open Firebase console, Go to project settings


enter image description here


  1. Go to Cloud Messaging tab and copy SenderID and Legacy server key


enter image description here


  1. Open Appgain Dashboard


  1. Go to Settings


  1. Navigate to Android push tab


  1. Enter your SenderID and Server key

enter image description here


  1. 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>