# Problem with Hilt in Zoom Android SDK

**URL:** <https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198>\
**Category:** Android\
**Created:** [January 26, 2022, 10:36am UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198 "2022-01-26T10:36:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![albert.kobiakov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/albert.kobiakov/32/32866_2.png) [@albert.kobiakov](https://devforum.zoom.us/u/albert.kobiakov)\
**Post date:** [January 26, 2022, 10:36am UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/1 "2022-01-26T10:36:48Z")

</div>

**Description**  
Hello. I am using zoom custom ui in my app. And I noticed that after adding the @AndroidEntryPoint (Hilt) annotation for the fragment in which the SDK Zoom is used, the dialog “This conference is being recorded by the organizer and participant” ceases to be displayed. If the annotation is removed, the dialog displays normally when someone is recording a video of the meeting.

**Which Android Meeting SDK version?**  
5.9.1.3674

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. meetingSettingsHelper.isCustomizedMeetingUIEnabled = true
2. Add the Hilt @AndroidEntryPoint annotation to the fragment in which the work with ZOOM SDK takes place
3. The host starts the meeting and starts recording the meeting
4. Participant joins the meeting
5. Message “This conference is being recorded by the organizer and participant” is not displayed
6. If you remove the @AndroidEntryPoint annotation and rejoin the meeting, the dialog displays normally

The problem is only reproduced if you use ZOOM SDK + Fragment + @AndroidEntryPoint. If you use Activity + ZOOM SDK + @AndroidEntryPoint everything works.

**Smartphone (please complete the following information):**

- Device: Pixel 3XL
- OS: Android 12

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 27, 2022, 1:56am UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/2 "2022-01-27T01:56:36Z")

</div>

Hi @albert.kobiakov, thanks for using our SDK.

Just to make sure I’m understanding correctly, the issue is that when you are using a `Fragment` to contain your custom UI, and only when that `Fragment` is annotated with `@AndroidEntryPoint`, the recording consent dialog is not shown, right? Is this issue present with an empty Fragment & Activity under these circumstances, or is there anything implemented inside of them?

I am not aware of any internal testing environments we have for the Android SDK which use Hilt, so I want to make sure we get the details right in order to protect against this in the future. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![albert.kobiakov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/albert.kobiakov/32/32866_2.png) [@albert.kobiakov](https://devforum.zoom.us/u/albert.kobiakov)\
**Post date:** [January 27, 2022, 7:19am UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/3 "2022-01-27T07:19:32Z")

</div>

The problem is reproduced only for the fragment. Checked absolutely on an empty fragment, nothing is implemented, only work with Zoom SDK

For example [import android.os.Bundleimport android.util.Logimport android.view.LayoutInf - Pastebin.com](https://pastebin.com/P2qh58P1)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 28, 2022, 7:12pm UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/4 "2022-01-28T19:12:01Z")

</div>

Thanks for the additional context! We will investigate this issue and let you know once we have an update.

---

<div class="post-metadata">

**Author:** ![vuzix\_greg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vuzix_greg/32/45663_2.png) [@vuzix\_greg](https://devforum.zoom.us/u/vuzix_greg)\
**Post date:** [January 28, 2022, 7:46pm UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/5 "2022-01-28T19:46:42Z")

</div>

I can confirm this behavior. I recently upgrading my app to use Hilt and I noticed the recording popup was not showing. I thought this was just a continuation of the existing issue discussed on the forum a couple months back where the recording dialog was not popping up if you joined a meeting where recording was already in progress.

> [@Toggling A/v throws SDKERR\_NO\_PERMISSION](https://devforum.zoom.us/t/toggling-a-v-throws-sdkerr-no-permission/60062/19):
>
> @jon.zoom I finally recreated it consistently. I’m using version 5.7.6.1922 of the Android SDK, although this occurs a few versions back as well. From Zoom for desktop, start a meeting and begin recording it before SDK app joins. From an Android SDK app, join the meeting. Notice you will hear the “recording in progress” audible message on the SDK app but no consent dialog appears. SDK user is unable to unmute or start video. canUnmuteMyAudio() and canUnmuteMyVideo() both return false. Stop re…

However I downgraded my app back to a point before I introduced Hilt and the recording dialog is now popping up. Both when joining a meeting where recording is already in progress and when recording starts at a later point.

So the issue I was having back in November seems solved with SDK v5.9.1.3674. But now I’m broken again because I’m using Hilt.

Hope you followed all that @jon.zoom! 🙂

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 31, 2022, 10:47pm UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/6 "2022-01-31T22:47:25Z")

</div>

Thanks for letting us know that you are seeing the same behavior @vuzix_greg!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 10, 2022, 6:26pm UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/7 "2022-02-10T18:26:53Z")

</div>

Hi @albert.kobiakov @vuzix_greg,

We were able to identify a fix for this which will be included in the next release.

Thanks!

---

<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 13, 2022, 4:27am UTC](https://devforum.zoom.us/t/problem-with-hilt-in-zoom-android-sdk/63198/8 "2022-03-13T04:27:39Z")

</div>

Closed on March 13, 2022, 4:27am UTC

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