Skip to main content
Answered

Double resolve/reject on react native iOS sendTokenToIntercom


Line 86 of your react native iOS bridge for the Intercom SDK causes a rejection after the resolve has already run, if the app is unable to communicate with Intercom.

 

I think you will either need to add a success handler into the native Intercom SDK, or remove this reject call althogether, as this is almost certainly going to be causing issues for any user of the react-native bridge if the network call fails.

 

https://github.com/intercom/intercom-react-native/blob/main/ios/IntercomModule.m#L86

Best answer by Jacob Cox

Hi @Giles Williams !

Just a quick update to let you know that I’ve opened an issue around this with our Product Team for the to look into further. I’ll let you know when we have any updates on that!

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

2 replies

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • October 8, 2023

Hi @Giles Williams !

I’ll run this past our product team and see if they have any thoughts on it. Thanks for sending that along! 


Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • 441 replies
  • Answer
  • October 21, 2023

Hi @Giles Williams !

Just a quick update to let you know that I’ve opened an issue around this with our Product Team for the to look into further. I’ll let you know when we have any updates on that!


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