OpenTok has duplicated sessions in MS Teams integration on IOS

75 Views Asked by At

guys. I use IPhone 7 (IOS version is 15.0). I am integrating app in MS Teams application. My app uses OpenTok. I faced with the next problem: when user open tab of my app in meeting, new session created. It's correct. After that user returns to the main screen of the meeting (session of my app is on - it's correct too) and opens tab of my app again. When tab opens old session is continuing to work and new session created too. And that is wrong, because i expect that old session will be destroy (like on desktop version). I have one code for desktop and mobile. I would appreciate any help.

1

There are 1 best solutions below

3
abdulajet On

From our sessions docs, OpenTok sessions do not expire. However, authentication tokens do expire. Also, note that sessions cannot explicitly be destroyed. You can create very short-lived tokens, so when a user leaves a tab they will not be able to reenter. More information is available here: https://tokbox.com/developer/guides/create-token/