Skip to content

How to check if running in Teams #74

Answered by waldekmastykarz
svrooij asked this question in Q&A
Discussion options

You must be logged in to vote

If I'm not mistaken, when you try to get Teams context outside of Teams, it will give you null which indicates that you're not running inside of Teams. isSupported is meant for checking capabilities, like sending emails, chat messages etc, which is the recommended way to determine the behavior inside your app because the functionality of the host could change in the future.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@svrooij
Comment options

@waldekmastykarz
Comment options

Answer selected by svrooij
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants