devrnt / react-use-intercom

☎️ React Intercom integration without the hassle, powered by hooks.
https://devrnt.github.io/react-use-intercom/#/useIntercom
MIT License
333 stars 43 forks source link

Allow setting of `region` parameter #674

Closed felixhagspiel closed 3 months ago

felixhagspiel commented 3 months ago

Is your feature request related to a problem? Please describe. There is no region parameter as there is in the plain JS SDK: https://developers.intercom.com/installing-intercom/web/installation/#basic-javascript

Describe the solution you'd like I want to be able to set the region to eu

Describe alternatives you've considered I guess setting the API base to https://api-iam.eu.intercom.io should solve it, but not sure if there is more going on behind the scenes when setting the region parameter.

Additional context This might be related: https://github.com/devrnt/react-use-intercom/issues/429

devrnt commented 3 months ago

I don't see a region parameter in the official docs, can you point me towards it? I assume you are trying to set the underlying api_base, if so you can already do this by setting the apiBase in the IntercomProvider.

If you have any questions, let me know!

felixhagspiel commented 3 months ago

hey @devrnt I see them in the typescript type of the messenger

image

But could also just be a shorthand for the apiBase

devrnt commented 3 months ago

Seems like you are referring to another library.

react-use-intercom is an unofficial library and has nothing to do with the official library

felixhagspiel commented 3 months ago

sorry, cant believe I have missed that :) thank you for looking into that.