Forum Discussion
Custom Teams app works in browser app but not in desktop app
- Dec 18, 2019
I did get this working... the SharePoint URL cannot be used directly. There are a couple of things that you will need to manually update in the manifest or in App Studio.
1. When configuring your tabs, use this format for contentURL and websiteURL:
contentUrl = {{siteUrl}}/_layouts/15/teamslogon.aspx?SPFX=true&dest={{sitePath}}
websiteUrl = {{siteUrl}}
The missing key here is the use of "/_layouts/15/teamslogon.aspx?SPFX=true&dest=".
Lets use the contoso url for example, https://contoso.sharepoint.com/sites/ContosoHub. Instead of just using this siteUrl directly, which is what I had previously done, the content url will now be:
https://contoso.sharepoint.com/sites/ContosoHub/_layouts/15/teamslogon.aspx?spfx=true&dest=/sites/ContosoHub
2. The second part to this is setting the "Web app single sign-on" properties.
AAD application ID: 00000003-0000-0ff1-ce00-000000000000
Resource Url: {{subdomain}}.sharepoint.com
Again, using contoso, the Resource Url would be: https://contoso.sharepoint.com
and use the same AAD app ID that I noted above.
I hope this helps.
Thanks.
--
Raul Hernandez
Hi Did you find a solution to web apps not working in a Tab in Teams Desktop Client but works fine in Teams Browser Client?
https://techcommunity.microsoft.com/t5/microsoft-viva-blog/install-viva-connections-today/ba-p/2245410
It is like an automized way to develop a team app with tabs. When you look at the manifest, you will find a sections with specific rights that i think the desktop client needs for the App Studio Apps:
"validDomains": [
"migros.sharepoint.com",
"*.login.microsoftonline.com",
"*.sharepoint.com",
"*.sharepoint-df.com",
"spoppe-a.akamaihd.net",
"spoprod-a.akamaihd.net",
"resourceseng.blob.core.windows.net",
"msft.spoppe.com"
But i did not test this further.
Franck
- hawaiianmetalMay 10, 2021Copper Contributor
franckma This worked for me. Thanks!
- franckmaMay 11, 2021Copper Contributorgreat, What we experienced, is that Viva Connections works for pure mobile users only, if their accounts are in the "Target Release" group of M365.
Viva Connections Mobile is not yet released for GA. Viva Connections on desktop is GA.