Code Monkey home page Code Monkey logo

devicepermissionsdemo's Introduction

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 [email protected] with any additional questions or comments.

devicepermissionsdemo's People

Contributors

wajeed-msft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.