MS-Teams apps, accessing native device capabilities

101 Views Asked by At

I'm using the below approach to access the camera & gallery from an MSTeams app.

Link: Access device permissions

I'm facing 2 errors, Error 1: 1000App doesn't have sufficient permission to use this API This is when i dont use "navigator.permissions.query({ name: 'camera' });" If i use the above navigator permission to prompt the permission alert i get the 2nd warning/exception ie Error 2: Exception Cannot read properties of undefined (reading 'query')

Can some please help..!

0

There are 0 best solutions below