Same bot instance or session is visible in all the instances


(chandrasekhar av) #1

Hi Team,
We are developed an application Web/iOS and Android platforms. I believe that a single session is shared by all the users that are using the applications.
Because one message typed by user is visible to all other users connected to the bot at that time.
Please help me on this issue.


(chandrasekhar av) #2

Hi Team,

Could you please update me on this issue.


(Subrahmanyam Donepudi) invited ajay.putti #3

(Subrahmanyam Donepudi) invited yogaramya.mendu #4

(Subrahmanyam Donepudi) invited swagata.sengupta #5

(Swagata Sengupta) invited srirama.yadlapalli #6

(Swagata Sengupta) #7

@chandrasekhar.anasur One session is not shared by all users. If all users (assuming people are using own mobile phones to chat) are seeing the same message as others, most probably platform is identifying all the physical users as same platform user. This can happen when the jwt “sub” is hard-coded. Please check the android/ iOS/ web SDK. There is a high probability that user identity is being hard coded in all the places.


(chandrasekhar av) #8

Hi Swagat,
same botOptions.userIdentity = ‘chandrasekhar.anasuri@serole.com’;

is using web,ios and android apps.

how can we pass the jwt “sub” dynamically.
could you please suggest me steps to how can we achieve this.


(Swagata Sengupta) #9

@chandrasekhar.anasur
That explains why everyone sees the messages posted from different devices.
As of now, we do not offer services for web/ mobile app development. We expect the users to explore the ways to capture the user identity.
In case of web, you may get it from session (assuming you are getting the credentials authenticated and you can pull the user name/ email id from there). It should just be unique for all users.


(Swagata Sengupta) made this topic public #10