# Joining session always trigger onSessionLeave immediately

**URL:** <https://devforum.zoom.us/t/joining-session-always-trigger-onsessionleave-immediately/82681>\
**Category:** React Native\
**Created:** [February 7, 2023, 3:51am UTC](https://devforum.zoom.us/t/joining-session-always-trigger-onsessionleave-immediately/82681 "2023-02-07T03:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailukman](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@mailukman](https://devforum.zoom.us/u/mailukman)\
**Post date:** [February 7, 2023, 3:51am UTC](https://devforum.zoom.us/t/joining-session-always-trigger-onsessionleave-immediately/82681/1 "2023-02-07T03:51:58Z")

</div>

Hi, I currently having an issue where the real android device won’t joining the existing session. The emulators work fine.

**Errors**  
The app trigger the `onSessionLeave` immediately right after `zoom.joinSession()` executed without triggering other events, including `onSessionJoin` and `onError`. And the return of the joinSession promise is always `null`.

**React Native version**  
0.59

**React Native Video SDK version**  
1.2.0

**Video SDK Code Snippets**

```auto
const session = await zoom.joinSession({
  sessionName: SESSIONNAME,
  sessionPassword: PASSWORD,
  token: JWTTOKEN,
  userName: MYUSERNAME,
  audioOptions: {
    connect: true,
    mute: false,
  },
  videoOptions: {
    localVideoOn: true,
  },
  sessionIdleTimeoutMins: 40,
});

```

**Smartphone:**

- Device: Samsung Galaxy S22
- OS: Android 12

**Additional context**  
This issue started happening suddenly around couple days ago. It worked just fine before. I have not reproduce it on a real iOS device yet.

---

<div class="post-metadata">

**Author:** ![kellyjandrews](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kellyjandrews/32/51599_2.png) [@kellyjandrews](https://devforum.zoom.us/u/kellyjandrews)\
**Post date:** [February 13, 2023, 10:24pm UTC](https://devforum.zoom.us/t/joining-session-always-trigger-onsessionleave-immediately/82681/2 "2023-02-13T22:24:02Z")

</div>

Could you try updating to the latest version - @zoom1234/react-native-videosdk - 1.6.2 and update the native SDKs to match the version as well, and let me know if that fixes your issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 9, 2023, 3:52am UTC](https://devforum.zoom.us/t/joining-session-always-trigger-onsessionleave-immediately/82681/3 "2023-03-09T03:52:55Z")

</div>

This topic was automatically closed after 30 days. New replies are no longer allowed.
