Skip to main content
Question

React Native expo error: Error while parsing method IntercomModule.loginUnidentifiedUser:


I am using the latest expo 52 with latest intercom and I get this error when on the first screen that uses Intercom

 

Error while parsing method IntercomModule.loginUnidentifiedUser: Methods that return promises must accept a RCTPromiseResolveBlock followed by a RCTPromiseRejectBlock.

 

I am using the expo 52 and React Native .76

 

We call this in our main component

Intercom.loginUserWithUserAttributes({

name: user?.first_name + ' ' + user.last_name,

phone: user?.phone,

email: user?.email,

userId: user?.uuid,

});

 

We set the config in our app.config.js file like this 

```

config.plugins.push( ["@intercom/intercom-react-native",

{

"appId": process.env.INTERCOM_APP_ID,

"androidApiKey": process.env.INTERCOM_IOS_TOKEN,

"iosApiKey": process.env.INTERCOM_ANDROID_TOKEN,

"intercomRegion": "US"

}

])

 

```

 

Not sure what we may be missing

0 replies

Be the first to reply!

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