Requirements


  • An android mobile app.

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

  • Android Studio

Steps


enter image description here


  • Go to Cloud Messaging tab and copy SenderID and Legacy server key



enter image description here



  • Go to Settings


  • Navigate to Android push tab


  • Enter your SenderID and Server key

enter image description here


  • 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>