tinycreative / react-native-intercom

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

Logout not working #429

Closed thomas-forster1 closed 3 years ago

thomas-forster1 commented 3 years ago

Hi guys,

"react": "16.13.1", "react-native": "0.63.3", "react-native-intercom": "^18.0.0",

issue after calling Intercom.logout() i'm still able to send messages to the user via Intercom Dashboard.

how i'm using 'react-native-intercom'

after a user logs in I do the following:

Intercom.logout() Intercom.registerUnidentifiedUser() Intercom.registerIdentifiedUser() Intercom.updateUser()

You might ask why I logout then registerUnidentifiedUser then registerIdentifiedUser. This is a hack to get user details to update.

when a user logs out I call: Intercom.logout()

the user will now be back on the login screen of my app. But I can still push messages to the user. Which I shouldn't be able to do.

does anyone have a solution to the logout issue?

Thanks in advance

Ahmedhamed77 commented 11 months ago

how did you solve that ?