tinycreative / react-native-intercom

React Native wrapper for Intercom.io
MIT License
406 stars 279 forks source link

Is registerUnidentifiedUser() idempotent? #469

Open bertrand-caron opened 2 years ago

bertrand-caron commented 2 years ago

Hi,

The docs are unclear whether Intercom.registerUnidentifiedUser() is idempotent or not.

I.e. if I call:

await Intercom.registerUnidentifiedUser()

and,

await Intercom.registerUnidentifiedUser()
await Intercom.logout()
await Intercom.registerUnidentifiedUser()

do I end up in the same state?

If not, how do I know whether registerUnidentifiedUser has already been called?

Thanks a lot :)