# Zoom sdk when screen pin lock

**URL:** <https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187>\
**Category:** Android\
**Created:** [February 21, 2020, 1:21pm UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187 "2020-02-21T13:21:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojfarshore](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@manojfarshore](https://devforum.zoom.us/u/manojfarshore)\
**Post date:** [February 21, 2020, 1:21pm UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/1 "2020-02-21T13:21:03Z")

</div>

Greetings,

1. Our app is in background state and the device is locked with password/pattern.
2. We send a push notification from server to the our app.
3. The app displays an incoming call screen above the lock screen.
4. The user click on accept call.
5. We call to zoomSDK.initialize and joinmeeting stepss
6. The user is asked to enter the password of the device.
7. The zoom app with the video meeting screen is displayed.

**The expected scenario is:**

After the user accept call, Zoom app should open without entering the password of the device. It should work as like normal phone calls.

Please help us to fix this issue.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [February 22, 2020, 1:05am UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/2 "2020-02-22T01:05:22Z")

</div>

Hi [manojfarshore](https://devforum.zoom.us/u/manojfarshore),

Thanks for using Zoom SDK. The behavior you are describing is not a normal Zoom client behavior so you might need to configure it. If you are using Custom UI, below is a code snippet that could make the meeting on top of the lock screen.

```auto
this.getWindow().addFlags(
                WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
                        | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
                        | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
                        | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);

```

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![manojfarshore](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@manojfarshore](https://devforum.zoom.us/u/manojfarshore)\
**Post date:** [February 22, 2020, 5:34am UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/3 "2020-02-22T05:34:23Z")

</div>

We are using the above same code for incoming call custom screen, It does not show video screen when meeting initiated. It ask to unlock.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [February 25, 2020, 2:50am UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/4 "2020-02-25T02:50:57Z")

</div>

Hi [manojfarshore](https://devforum.zoom.us/u/manojfarshore),

If you using Zoom default UI, it is not supported to make the meeting screen on top of the lock screen, it will require to unlock.

If you are using Custom UI, which is fully customized, you develop all the views, you can use the above code to make the meeting view on top of the meeting screen. Since it is fully customized UI, the views are under your control, you may do what ever you want.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![j.phillips](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/j.phillips/32/1111_2.png) [@j.phillips](https://devforum.zoom.us/u/j.phillips)\
**Post date:** [May 24, 2020, 7:33pm UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/5 "2020-05-24T19:33:21Z")

</div>

@carson.zoom even implementing the custom ui, the zoom sdk does not run from the lock screen. The custom class does not get called. It does when the phone is unlocked but not locked. Is there a way around this?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 28, 2020, 9:02am UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/6 "2020-05-28T09:02:40Z")

</div>

Hi @j.phillips,

Thanks for the reply. Please see my response in [Joining a meeting when the phone is locked](https://devforum.zoom.us/t/joining-a-meeting-when-the-phone-is-locked/18778/8).

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:34pm UTC](https://devforum.zoom.us/t/zoom-sdk-when-screen-pin-lock/8187/7 "2020-08-21T21:34:36Z")

</div>

Closed on August 21, 2020, 9:34pm UTC


