Skip to main content
Answered

React Native: 404 Resource not found

  • May 14, 2024
  • 1 reply
  • 210 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

Best answer by mateusz.leszkiewicz

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.

View original
Did this topic help you find an answer to your question?

1 reply

mateusz.leszkiewicz
Intercom Team
Forum|alt.badge.img+5

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


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