相关文章推荐
温柔的西瓜  ·  Android ...·  1 年前    · 
听话的手套  ·  CSS: ...·  1 年前    · 

We have created a MS Teams Tab application which loads a web application URL using the IFrame tag and is working fine locally.

As per the documentation - https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/what-are-tabs , it is mentioned that 'Teams app doesn't recognize sub iframes. Therefore, it'll not load if there is an iframe within the tab app.'

Could you provide some clarity if loading a url as iframe in the tab application is supported in production , as we want to publish our application in MS Store.

Thanks!

The note mentioned in the doc means that "Tab apps will be loaded as iframe in Teams. If there is any iframe within tab app(iframe within iframe), then it might not load properly in Teams. Because Teams will be unaware about sub iframes".

For example, Site1 added as Personal tab app. And in Site 1 page, iframe tag added as following:

<iframe src="site2url" title="description"></iframe>. It could be same domain or other domain. But site2url might fail to load content or passing token/session/cookies information.

As long as your tab app is an iframe and it does not contain any iframes inside it, it will work in production as well.

The note mentioned in the doc means that "Tab apps will be loaded as iframe in Teams. If there is any iframe within tab app, then it might not load properly in Teams. Because Teams will be unaware about sub iframes.

For example, Site1 added as Personal tab app. And in Site 1 page, iframe tag added as following:

<iframe src="site2url" title="description"></iframe>. It could be same domain or other domain. But site2url might fail to load content or passing token/session/cookies information."

As long as your tab app is a single iframe and it does not contain iframe inside it, your tab app will work in production as well.