groff07
groff07

Reputation: 2501

PickVisualMediaRequest not showing photos for my work profile

I'm trying to select pictures from my gallery in Android with the code below

pickMedia.launch(
    PickVisualMediaRequest(
        ActivityResultContracts.PickVisualMedia.SingleMimeType(
            "image/jpeg"
        )
    )
)

It was working fine until I had to install Hexnode, a device manager tool that creates profiles on your phone.

What I have right now is two different profiles on my phone (Personal and Work) Personal profile there are no restrictions, so the app works fine, but for my Work profile, there is a policy that limits the apps that I can use. For example, if the user needs to use the camera, I have to assign the camera app to this policy, otherwise, he will not be able to use it.

The issue that I'm facing right now is I have my work profile selected and when I try to get a photo from the gallery with the code below, the picker is empty.

So, I'm wondering what's the app PickVisualMediaRequest uses so I can add to this policy.

Does anyone have an issue like that and know how to solve it?

Upvotes: 1

Views: 79

Answers (0)

Related Questions