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

%3CLINGO-SUB%20id%3D%22lingo-sub-1815280%22%20slang%3D%22en-US%22%3EOpen%20mobile%20Teams%203rd%20party%20app%20in%20MS%20Teams%20instead%20of%20browser%20by%20default%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1815280%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20my%20team%20has%20published%20a%203rd%20party%20app%20for%20Microsoft%20Teams.%20Our%20app%20is%20meant%20to%20be%20used%20in%20Teams%20only%2C%20and%20uses%20the%20Microsoft%20Teams%20JavaScript%20client%20SDK%20for%20authentication.%20This%20means%20that%20users%20accessing%20our%20app%20can%20only%20log%20in%20and%20use%20the%20app%20when%20it%20ran%20within%20a%20Teams%20context%2C%20and%20not%20natively%20in%20the%20browser.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20works%20well%20for%20most%20cases%20-%20Teams%20web%2C%20Teams%20desktop%20app%20both%20open%20the%20app%20in%20an%20iframe%20within%20a%20Teams%20context%20correctly%2C%20and%20we%20can%20use%20the%20JavaScript%20client%20SDK%20to%20log%20in%20our%20users.%20However%2C%20inside%20the%20Teams%20mobile%20app%2C%20opening%20our%20app%20%3CSTRONG%3Eo%3C%2FSTRONG%3E%3CSTRONG%3Epens%20in%20browser%20by%20default%2C%20which%20we%20don't%20want.%3C%2FSTRONG%3E%20We%20are%20forced%20to%20show%20a%20message%20to%20the%20user%20instructing%20them%20to%20go%20back%2C%20click%20the%20hamburger%20menu%2C%20and%20select%20%22Open%22%20instead%20of%20%22Open%20in%20browser%22%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22web-unsupported.jpg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F229059i2522994E6DB096D8%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22web-unsupported.jpg%22%20alt%3D%22web-unsupported.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3CBR%20%2F%3EIs%20there%20a%20way%20to%20make%20%22Open%22%20the%20default%20behavior%20when%20opening%20the%20app%20by%20clicking%20on%20it%2C%20instead%20of%20forcing%20the%20user%20to%20go%20back%20and%20open%20through%20the%20hamburger%20menu%3F%20Can%20we%20remove%20the%20%22Open%20in%20browser%22%20altogether%20since%20this%20application%20is%20not%20supported%20in%20the%20browser%20outside%20of%20Microsoft%20Teams%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3EAlex%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1815280%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New 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