Forum Discussion
SingleWebPartAppPage not working in MS Teams Desktop Client
Hi Srinivas Narula ,
One thing you can try is adding another "supportedHost":
TeamsTab
(See example on https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/single-part-app-pages).
I don't know if this will solve you issue though, it's just something you might try.
I have a question though, if you are using a SingleWebPartAppPage, isn't it more interesting to directly add the webpart as a team tab instead of wrapping it by a page and adding the page?
More information about this can be found at following location:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab
Hope this helps!
- Srinivas NarulaJan 28, 2020Brass Contributor
Stijn Brouwers - Thanks for replying back.
I forgot to update this post.
There are 2 underlying Issues with my application.
- I didn't format the URL as per guidelines. The right one is below
https://<<tenantname>>/_layouts/15/teamslogon.aspx?SPFX=true&dest=<</sites/sitename/SitePages/pagename.aspx>>
- Graph scopes used in application was not consented in Azure AD app (SharePoint Online Client Extensible Web Application)
Thanks alot for reminding about this issue.