Forum Discussion
SingleWebPartAppPage not working in MS Teams Desktop Client
Hi Folks,
1 ) Created Hello world solution with SPFx 1.8.2 and added to the SharePoint App page (Full SharePoint Page). Then added below parameters and build & packed the solution.
"supportedHosts": ["SharePointWebPart","SharePointFullPage"],
Next added it to the SharePoint App Page. It works perfectly.
2) In Microsoft Teams, with App editor created a manifest file with personal tab and added newly created sharepoint page in content URL.
3) Tested and downloaded the solution. After installing it to the Teams App gallery and trying it open it from App tray, it is loading SharePoint Page in Teams Tab.
When I checked it in web version, its works fine. But not in desktop version.
4) To rule out the issue added below domains to render the application.
"validDomains": [
"tenantname.sharepoint.com",
"tenantname.sharepoint-df.com",
"tenantname.login.microsoftonline.com",
"msft.spoppe.com",
"resourceseng.blob.core.windows.net",
"spoprod-a.akamaihd.net",
"spoppe-a.akamaihd.net"
]
Please correct me, if I'm doing anything wrong in the solution. Here are the screenshots for Desktop & Web.
Web: WORKING
Desktop : NOT WORKING
- Stijn BrouwersCopper Contributor
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:
Hope this helps!
- Srinivas NarulaBrass 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.