Integrating Microsoft Teams with WebViewer
Welcome to Apryse. This is a guide to getting started with Apryse's WebViewer sample and integrating it with Microsoft Teams as a Teams App. The WebViewer will let you open PDFs, Annotate, Fill and Sign, and so much more.
How do Apps work in Teams?
When apps are made for Microsoft Teams a JSON manifest file is generated.The manifest file contains all the information the user needs to use the Teams app such as the web pages to navigate to for the Teams Tabs. Tabs in Teams are an <iframe> so adding both new or existing web apps are made possible.
Prerequisites
The following needs to be installed for this guide:
VS Code - Download
VS Code Teams Toolkit Extension - MSFT Setup Guide
Microsoft 365 Account with valid subscription or join Microsoft 365 Developer Program Join here
Download Node.js
Apryse WebViewer
First we need to set up a WebViewer, for this example we can explore Apryse's samples for a preferred web framework and follow the guides to build the WebViewer.
Frameworks such as (linked to Apryse guides):
Use ngrok to make local running instance externally accessible
The WebViewer sample needs to be publically available using HTTPS endpoints for Microsoft Teams. This can be done easily with the tool ngrok for testing and developing your app.
See Microsoft docs - Setup locally hosted web app for more information.
Follow steps below or setup ngrok
Install ngrok via Chocolatey
Add auth token (You generate your own token and input it here)
Start a tunnel (Note: Change port “4200” as needed)
Start a new project for Microsoft Teams and integrate
In VS Code select the extension Teams Toolkit
Create a new Teams app
Select
Edit manifest fileunderneathDevelopmentheader or go to themanifest.local.template.jsonEdit all the Urls to match the new externally accessible Url from ngrok
F5 to build and run
Add the app

Alternatively, the app can be zipped and sideloaded into Teams as well.

You should have something like this at the end!

Sideloading issues
Note: If there is an issue with Sideloading not being enabled, you must sign into the admin center as the admin and enable it.
At the admin center, select
TeamsExpand
Teams appsUnderneath go to
Setup policiesEnable
Upload custom apps
This may take time to update after enabling it in the admin center.

Conclusion
In this guide, we have put together Apryse's WebViewer with a Microsoft Teams Personal Tab. Review a completed sample project on Github.
If you are interested in trying other features with the Apryse's WebViewer, check out the getting started guides.
That is all, please contact us if you need help.
Last updated
Was this helpful?