Answered

React Native: 404 Resource not found

  • 14 May 2024
  • 1 reply
  • 30 views

[Error: ERROR - [HTTP 404] - Resource Not Found]. when I try to use one of the login function.

we are using or trying to present the Intercom Messenger.

 

const loginWithIntercom = async () => {
const status1 = await Intercom.setUserHash(user.id.toString());
console.log('status hash : ', status1) // true

const status = await Intercom.loginUserWithUserAttributes({
userId: user.id.toString()
}); // throw 404 not found error

console.log('login success : ', status);
};

I’ve checked in the native code that everything is configured as it should be after running npx expo prebuild.

how to deal with this issue ?

We are using :

expo SDK: 51

react-native: 0.74.1

intercom/intercom-react-native: 7.1.1

how to deal with this issue

icon

Best answer by mateusz.leszkiewicz 21 May 2024, 16:15

View original

1 reply

Userlevel 2
Badge +4

Hi iamMAHAM, It’s Mat from the Support Engineering Team 😀

If you are unsure how to modify your code please refer to our Example React Native App.
You can find similar working code structures, so you can find your inspiration there.

Reply