Closed SharePickle closed 4 months ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
@SharePickle, let's follow up offline. one thing thou: the way you reproed it in the web is wrong and will always fail: when you add env=webView it is a signal for us that we are embedded in Teams. That's where we try to get the token from Teams and not MSAL. in the browser, we are not in Teams so we will always stuck forever.
@lucabandMSFT hello, could you please keep the ticket open? Teams issue still not resolved, even if my WebView steps are invalid. Also, how is it possible to debug Teams Viva Connections on Mobile phone, do you guys have any tutorials? I could only find guides on how to test Teams Tab, but not Viva Connections page.
Looks like we have similar issue with any web part using Graph API in mobile SharePoint app and in mobile Teams app (through Viva Connections). Reported by customer and reproduced in multiple tenants.
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
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
In Teams Viva Connections on mobile phone (both Android and iOS) anything related to
AadHttpClient
is not working and forever waiting ongetToken
method. This includesMSGraphClientV3
. For example trying to get anything from Graph API will just be sitting there stuck forever.No errors in console, no failed network requests, just nothing.
See sample code below:
IMPORTANT: I'm able to reproduce this outside of Teams (Windows 11 Desktop) using this page (you have to deploy and install an Application Customizer on your site, this page is blank and only loads extensions)
https://<tenant>.sharepoint.com/_layouts/15/preload.aspx?mbypass=1&env=WebView
If you removeWebView
argument then it starts to work without any issues.While debugging, this bit seems to be never resolving and saving forever pending promise in tokens cache:
Steps to reproduce 1 (Teams + Mobile phone)
Steps to reproduce 2 (Browser + Desktop)
https://<tenant>.sharepoint.com/_layouts/15/preload.aspx?mbypass=1&env=WebView
Expected behavior
Graph token succesfully retrieved and Graph API request succeeds.