tinycreative / react-native-intercom

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

Intercom.registerUnidentifiedUser() create users on my admin console #348

Closed MayoudP closed 2 years ago

MayoudP commented 4 years ago

Hello folks,

for users using my mobile application without being registered, for example peoples who doesn't created their account but still can access to the live chat Intercom). I need to do this to allow them to access to the live chat :

Intercom.registerUnidentifiedUser().
            then(() => {
                Intercom.displayMessenger();
            })

but then it's creating some random users on my admin console :

Capture d’écran 2020-02-27 à 14 13 37

Is there a way to allow non-registered users to access live chat without having to create these kind of users on the DB ?

Thanks for the help ! And sorry if someone already answered this questions, didn't found a similar thread in the existing issues tho.

react-native-cli: 2.0.1
react-native: 0.59.10
react-native-intercom: 13.0.0,
Br1an-Boyle commented 4 years ago

👋 unidentified users are assigned a random id within Intercom. This is what you’re seeing here.

MayoudP commented 4 years ago

👋 unidentified users are assigned a random id within Intercom. This is what you’re seeing here.

And we can't disable this feature ? By any chance...

Br1an-Boyle commented 4 years ago

@MayoudP Unfortunately not. Intercom assigns a random id to unidentified users. You could, however, set a user's name or email via userAttributes. Or just register the user as an identified user if you know these details.