Push Notification Integration

Visit Mobile Push channel configuration page for push notifications integration guidelines.

In order to send notifications to your mobile users using Growlytics platform, you will need to add FCM messaging listeners to your apps.

Step 1: Register FCM Messaging Service

Register an Growlytics' FCM messaging service in android manifest file as mentioned in example below. If you have already registered FCM messaging service, you can call Growlytics's updateFCMToken() and updateFCMToken() methods.

AndroidManifest.xml
// Skip adding this if you have already added in previous step
<service android:name="com.growlytics.android.sdk.FcmMessagingService">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>

Step 2: Register Broadcast Receiver

In order to receive notifications in background, add a receiver as mentioned in example below. If you have already registered FCM messaging service, you can call Growlytics's onNotificationReceived()method.

AndroidManifest.xml
<receiver 
    android:name="com.growlytics.android.sdk.GrwPushNotificationReceiver">
</receiver>

Step 3: Configure FCM credentials

Visit Mobile Push channel configuration page for configuring FCM credentials.

Additional Notes

Structure of the payload with a Growlytics FCM push notification.

Last updated