Answered

Double resolve/reject on react native iOS sendTokenToIntercom

  • 6 October 2023
  • 2 replies
  • 95 views

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

icon

Best answer by Jacob Cox 21 October 2023, 23:29

View original

2 replies

Userlevel 4
Badge +5

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! 

Userlevel 4
Badge +5

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!

Reply