Skip to main content
Question

Expo - Push notifications not working


Hello,

We are currently migrating our react-native app to Expo and we are facing some issues with Intercom push notifications.

We are using:

"@intercom/intercom-react-native": "8.1.0",
"expo": "52.0.28",

And in app.config.ts, this is our intercom setup:

'@intercom/intercom-react-native',{  appId: process.env.EXPO_PUBLIC_SECRETS_INTERCOM_APP_ID,  androidApiKey: process.env.EXPO_PUBLIC_SECRETS_INTERCOM_ANDROID_API_KEY,  iosApiKey: process.env.EXPO_PUBLIC_SECRETS_INTERCOM_IOS_API_KEY}

We have followed the rest of the setup mentioned on github.

It seems that the chat works when we open it from the app. The user can send and receive messages as expected.

The problem is that the push notifications don’t seem to work at all. We don’t receive any notification when the app is on the background or closed.

Could you please advice on what we can check?

 

Thank you,

Nikos

2 replies

  • New Participant
  • 2 replies
  • February 5, 2025

Do you use expo-notifications to request user permission?
also for android you could try out to set notifications channel:
 

if (Platform.OS === 'android') {
        await Notifications.setNotificationChannelAsync('intercom', {
          name: 'Intercom',
          description: 'Channel for intercom',
          importance: Notifications.AndroidImportance.MAX,
          vibrationPattern: [0, 250, 250, 250],
          lightColor: YOUR_COLOR,
        })
      }

 


  • Author
  • New Participant
  • 1 reply
  • February 5, 2025

Thank you ​@Nazar Zabirko for your answer. No we don’t use expo-notifications to request user permission. We are using requestNotifications from react-native-permissions package. 

Let me add to this that we are using Braze as well on our project, through which we send/receive notifications normally. 

We could try expo-notifications though and see if we get a different outcome


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings