This is demo app to for device permissions.
-
Install some sort of tunnelling service. These instructions assume you are using ngrok: https://ngrok.com/
-
Begin your tunnelling service to get an https endpoint. For this example ngrok is used. Start an ngrok tunnel with the following command (you'll need the https endpoint for the bot registration):
ngrok http 3978 --host-header=localhost
-
Create an app manifest. Navigate to the file, manifest/manifest.json - Change:
- <<BASE_URI_DOMAIN>> change to your https endpoint from ngrok excluding the "https://" part
- Save the file and zip this file along with both the png icons (located next to it) together to create a manifest.zip file
- Clone the sample and open it in Visual Studio. (Look at similar steps if you are not sure)
- Build and run your sample
- Upload an app package (Zip file created in step 3 above) to Microsoft Teams
- Go to Device Permissions Demo Tab.
- Click on respective button to test the scenario. You will get prompt to accept permission request.
- You can also try this on Mobile.
Important
Please take a look at notes section in Device Permissions documentation as not all devices support these permissions.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.