Open mobile Teams 3rd party app in MS Teams instead of browser by default

Copper Contributor

Hi, my team has published a 3rd party app for Microsoft Teams. Our app is meant to be used in Teams only, and uses the Microsoft Teams JavaScript client SDK for authentication. This means that users accessing our app can only log in and use the app when it ran within a Teams context, and not natively in the browser.

This works well for most cases - Teams web, Teams desktop app both open the app in an iframe within a Teams context correctly, and we can use the JavaScript client SDK to log in our users. However, inside the Teams mobile app, opening our app opens in browser by default, which we don't want. We are forced to show a message to the user instructing them to go back, click the hamburger menu, and select "Open" instead of "Open in browser":

web-unsupported.jpg


Is there a way to make "Open" the default behavior when opening the app by clicking on it, instead of forcing the user to go back and open through the hamburger menu? Can we remove the "Open in browser" altogether since this application is not supported in the browser outside of Microsoft Teams?

Thanks,
Alex

0 Replies