Open stevebeauge opened 1 year ago
Hi stevebeauge! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.
Best regards, Teams Platform
@stevebeauge thanks for raising this issue and providing detailed repro steps. We will investigate this and get back to you with an update.
@stevebeauge - We have tried to test the app but are getting some errors. We will let you know the update once testing is done. If it is bug then raised it accordingly.
@stevebeauge -Sorry for delay in response, We have tried to add as compose extension,but still it is not showing the app in conversation. We have added like below:-
We will let you know the updates once testing is done.
Tracking issue from here-https://github.com/SharePoint/sp-dev-docs/issues/9018
(also posted here: https://github.com/SharePoint/sp-dev-docs/issues/9018 as requested by Microsoft Teams app submissions team)
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
π₯ SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
On desktop :
On android : latest Teams app (1416/1.0.0.2023103504/0605)
Tested with SPFX 1.17.3 + node 16.20.1
Describe the bug / error
We are developing SPFX webparts that are exposed in Microsoft Teams.
Some webparts are exposed as
staticTabs
, some others ascomposeExtension
.On desktop, everything is working properly: both static tabs and compose extension are able to show the webparts:
Exemple of compose extension:
However, on Teams mobile I get an error (Android version but some users reported issue with IOS too):
In english:
Failed to load webview. Please check whether the specified app is available.
Most of the discussions I found related to this issue (like https://github.com/MicrosoftDocs/msteams-docs/issues/4254) are related to targeted content not available as IFrame because of CSP issues.
However, because the task module is hosted by SharePoint itself, I cannot control the headers sent by the server.
Since the webparts are OK as static tabs, I think this is very specific to the way Teams load the task module.
Because the failure happens before the webview is loaded. Web dev tools (inspect from edge://inspect) is not possible, the page is not yet loaded. I didn't find any location where I can get some clue about the error (no console,...).
In order to test, I took the manifest build automatically by sharepoint, and I just added the compose extension:
Steps to reproduce
_api/web/tenantappcatalog/downloadteamssolution(id)/$value
endpoint)In the extracted manifest, add a compose extension:
botId
to match the bot you set up previously and set thecomponentId
part inside the taskinfo url to your WebPart component (should be the same as the static tab already in the manifest)FYI: a repro project has been created here: https://github.com/stevebeauge/repro-sp-dev-docs-issues-9018
Expected behavior
Compose extension built using SPFX should works, same as static tabs built using same framework.