Sample code of Custom Push for FCM

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

We have successfully upgraded from GCM to FCM recently.

Now We have to upgrade our FFI for customized multi line push for GCM.

Can you please share the if we have any Sample code for this. Please find attached our FFI that we have written with GCM.

Below link talk about the GCM only.

http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/Custom_FCM.htm

@Anne Wilson​

Please find the below code snippet

to implement custom FCM

Custom FCM Service

package com.kony.push.custom;

import com.konylabs.fcm.KonyFCMService;

public class CustomKonyFCMService extends KonyFCMService{

//This method is called for new push message arrival when app is not running in

// foreground. (Note: this will not be called is if GCM v3.0 payload is enabled)

@Override public void showPushMessageNotification(Context context, Map<String, String> data){

//custom implementation goes here

//you can use same logic which is used inside gcm

}

}

And mentioned the custom class name in visualizer settings

Hi,

Please check the attached document for Custom FCM Service.

Thank you,