[PUSH doens't work] Migrating to FCM with React-Native

Hello,
I’m using react-native-intercom SDK through my app. Everythings works pretty well,
however since I started the migration to FCM, since GCM is beeing deprecated, it occured that push notifications doesn’t work anymore… I did the setup with Firebase, and if I’m sending a push notification directly from the firebase console, it’s working, but the link with intercom is not etablished, because after setting the correct API Server key inside my Intercom console, push notifications are sent but not received on my phone…

The problem can potentially come from the fact that we’re also using One-Signal inside our app to handle push notifications.
I guess I’ll need to do a custom handler for Intercom notifications in order to have push well handled, but don’t really know how to do it :confused:

Does anyone got troubles to migrate to FCM with having several services for Push messaging inside their app ?

Hey Mayou :wave:

Can you clarify if you’re already extending your FirebaseMessagingService as mentioned in our developer docs:

Do I necessarily have to extend FirebaseMessagingService ? I’m doing some tests with OneSignal service-extensions. So it’ currently s extending

NotificationExtenderService

But Since I don’t received PUSH, I’m not sure if it’s done like that…

However, I tried with the intercom documentation to do this :

import io.intercom.android.sdk.push.IntercomPushClient;
import com.google.firebase.messaging.RemoteMessage;
import com.google.firebase.messaging.FirebaseMessagingService;
import android.util.Log;
import java.util.Map;

public class MainMessagingService extends FirebaseMessagingService {
    private static final String TAG = "MainMessagingService";
    private final IntercomPushClient intercomPushClient = new IntercomPushClient();

    public void onMessageReceived(RemoteMessage remoteMessage) {
        Map message = remoteMessage.getData();
        if (intercomPushClient.isIntercomPush(message)) {
            intercomPushClient.handlePush(getApplication(), message);
        } else {
            super.onMessageReceived(remoteMessage);
            // DO HOST LOGIC HERE
        }
    }
}

with including this inside my manifest :

 <service
          android:name=".MainMessagingService"
          android:enabled="true"
          android:exported="true">
            <intent-filter>
              <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
</service>

But still,I don’t receive any push notifications… I well included in the library :

    implementation 'io.intercom.android:intercom-sdk:5.+'
    implementation 'com.google.firebase:firebase-messaging:17.+'

So don;t really know what I’m missing there…

There isn’t anything immediately jumping out to me that’s wrong here so for us to take a deeper look can you log into Intercom and write into the Messenger about this?

If you can provide us with the following info through the Messenger then we can help get to the bottom of what’s going on here:
-email or user_id of the user that isn’t receiving the push notification
-a link to the push message that you’re sending through Intercom
-a link to this forum post