# How to receive notification when closing SBUOpenChannelViewController?

**URL:** <https://community.sendbird.com/t/how-to-receive-notification-when-closing-sbuopenchannelviewcontroller/4793>\
**Category:** iOS\
**Created:** [May 30, 2022, 3:05pm UTC](https://community.sendbird.com/t/how-to-receive-notification-when-closing-sbuopenchannelviewcontroller/4793 "2022-05-30T15:05:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sotrosh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sotrosh/32/2553_2.png) [@sotrosh](https://community.sendbird.com/u/sotrosh)\
**Post date:** [May 30, 2022, 3:05pm UTC](https://community.sendbird.com/t/how-to-receive-notification-when-closing-sbuopenchannelviewcontroller/4793/1 "2022-05-30T15:05:58Z")

</div>

Hi,

My chat consist of one SBUOpenChannelViewController and I need to get notification/callback when chat user tapped to close the chat. Here is how I currently getting that notification:

```auto
extension OpenChannelNavigationController {
    open override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        NotificationCenter.default.post(name: NSNotification.Name(Constants.openChannelDidDismissNotification),
                                        object: nil)
    }
}

```

It works well but the issue is when I try to use **camera** in chat, then this notification triggers that is not correct in my case.

Perhaps there is another solution I could use to determinate when user exits the channel?

Thank you.
