sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFx - Microsoft teams web part not work on desktop app

Open honb opened this issue 7 years ago • 4 comments

Hi there,

I created a MS teams web part which requests to custom APIs and they are trusted in API Managements in SP admin center.

I added in as a tab in MS teams ==> Its working fine on web but not on desktop app (keep loading forever). Is this a known issue of SPFx v1.7 or I need some configurations to get this work?

Thanks in advance.

honb avatar Dec 13 '18 08:12 honb

Yes - known issue around auth that we are working on. There are some workarounds you can try (I think adding a PowerBI tab, authenticating, then cancelling out of the tab, then navigating to the SPFX tab), but the easiest thing (from a developer standpoint) is to stick with the web app for now.

patmill avatar Dec 13 '18 16:12 patmill

Hi All,

I am facing exactly same issue, following the same design (calling AAD protected endpoint using AadHttpClient). It works well as a web page but loads infinitely when using as a teams tab.

Is there any progress made in the meantime or if there is any better workaround available?

Thanks in advance.

Ashish1662 avatar May 22 '19 11:05 Ashish1662

@Ashish1662 I haven't checked SPFx 1.8 yet, but look likes its still not work

honb avatar May 23 '19 07:05 honb

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 25 '20 18:01 msft-github-bot