Skip to content

media.requestPermission() Doesn't do Anything in a Browser Dialog (Task Context) #2914

@lswdowcoombs

Description

@lswdowcoombs

When using microsoftTeams.media.requestPermission() in a custom app, it is only available in the content and task contexts. It works as expected in the content context, but when used in a task context (i.e. in a dialog), nothing happens. There is no error output in the console, and even with a try/catch around the call, nothing is returned. The call seemingly doesn't execute, which is strange.

I'm wanting to run this because I'd like to use microsoftTeams.media.selectMedia() from within a dialog, but when I call it I get the following response back: "{errorCode: 1000, message: 'Please grant media permissions for the app'}". My manifest has media in the devicePermissions property, and as mentioned before it works as expected when called from the content context.

I am using package version 2.46.0 and Google Chrome Version 140.0.7339.208 (Official Build) (64-bit).

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions