Answered

Issue with receiving push notification in android.

  • 10 January 2022
  • 5 replies
  • 128 views

We are using expo notification package for push notification in our project. When we add the intercom react native push notification android code changes that are provided in the documentation we are getting intercom notification but our existing push notification are not coming. Is there any way to use both. Kindly suggest us. Thanks in advance

icon

Best answer by Eric Fitz 19 January 2022, 12:06

View original

5 replies

Userlevel 1

Hey @sivakumar​, when you say "our existing push notification" do you mean outbound push notifications that you are sending to your customers?

These are push notification that are not related to Intercom.

Userlevel 1

OK, just so I understand, your issue is that installing Intercom caused push notifications in your other system to stop working?

Yes you’re right, after adding the below code in android as mentioned in the intercom documentation.

 

<!-- Add xmlns:tools to manifest. See example below-->

<manifest

xmlns:tools="http://schemas.android.com/toolsquot;

>

<application>

<activity>

...

</activity>

...

 

<!-- START: Add this-->

<service

android:name=".MainNotificationService">

<intent-filter>

<action android:name="com.google.firebase.MESSAGING_EVENT"/>

</intent-filter>

</service>

 

<receiver

android:name="com.intercom.reactnative.RNIntercomPushBroadcastReceiver"

tools:replace="android:exported"

android:exported="true"/>

<!-- END: Add this-->

 

</application>

</manifest>

Userlevel 1

Apologies for the delay in my response @sivakumar​. I'd recommend that you contact our Support Engineers directly about this via the Messenger in your Intercom workspace.

Reply