/DevicePermissionsDemo

Demo app to for device permissions.

Primary LanguageHTMLMIT LicenseMIT

DevicePermissionsDemo

This is demo app to for device permissions.

Getting started

  1. Install some sort of tunnelling service. These instructions assume you are using ngrok: https://ngrok.com/

  2. 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
  3. Create an app manifest. Navigate to the file, manifest/manifest.json - Change:

    1. <<BASE_URI_DOMAIN>> change to your https endpoint from ngrok excluding the "https://" part
    2. Save the file and zip this file along with both the png icons (located next to it) together to create a manifest.zip file

See it running

  1. Clone the sample and open it in Visual Studio. (Look at similar steps if you are not sure)
  2. Build and run your sample Local Running App
  3. Upload an app package (Zip file created in step 3 above) to Microsoft Teams Install App
  4. Go to Device Permissions Demo Tab.
  5. Click on respective button to test the scenario. You will get prompt to accept permission request. Accept Permissions
  6. You can also try this on Mobile.
    Mobile Demo

[!IMPORTANT] Please take a look at notes section in Device Permissions documentation as not all devices support these permissions.

Contributing

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 opencode@microsoft.com with any additional questions or comments.