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
- SPFx 1.22.1
- Node 22.22.0
- API used: AdaptiveCardExtensionContext.location (experimental feature)
Clients tested:
- ✅Browser (Viva Connections Dashboard in SharePoint): works
- ❌Microsoft Teams mobile (iOS): promise remains pending
Describe the bug / error
we would like to report an unexpected behavior we are observing with the experimental AdaptiveCardExtensionContext.location API when used in a Viva Connections Adaptive Card Extension (ACE), specifically in Microsoft Teams mobile clients.
Summary of the observation
When our ACE is running inside Microsoft Teams on mobile devices (iOS and Android), the promise returned by AdaptiveCardExtensionContext.location never resolves and never rejects. As a result, the application remains in a loading state indefinitely.
The same ACE works as expected when accessed via browser (e.g. Viva Connections in SharePoint), where the promise either resolves successfully with a location or rejects with an error.
Implementation details (simplified)
// @ts-expect-error we are loading a beta feature
props.context.location
.then((location: ILocation) => {
console.log("LocationACE: Acquired user location: ", location);
// update user’s location
setUserGeoLocation(location);
// switch off the spinner
setLoading(false);
})
.catch((error: Error) => {
console.error("LocationACE: Error acquiring user location: ", error);
// switch off the spinner
setLoading(false);
});
Request
Could you please:
- Confirm whether this is a known limitation or issue with Viva Connections in Teams mobile?
- Check on your side why AdaptiveCardExtensionContext.location does not resolve or reject on mobile clients?
- Clarify if Teams mobile support for AdaptiveCardExtensionContext.location is considered
This information would help us handle the feature appropriately and set correct expectations for our users.
Thank you very much for your support — we are happy to provide additional information or having a chat to go deeper into details.
Steps to reproduce
use above-described code to acquire user's location using teams mobile
Expected behavior
promise will be resolved or rejected with appropriate error
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
Clients tested:
Describe the bug / error
we would like to report an unexpected behavior we are observing with the experimental AdaptiveCardExtensionContext.location API when used in a Viva Connections Adaptive Card Extension (ACE), specifically in Microsoft Teams mobile clients.
Summary of the observation
When our ACE is running inside Microsoft Teams on mobile devices (iOS and Android), the promise returned by AdaptiveCardExtensionContext.location never resolves and never rejects. As a result, the application remains in a loading state indefinitely.
The same ACE works as expected when accessed via browser (e.g. Viva Connections in SharePoint), where the promise either resolves successfully with a location or rejects with an error.
Implementation details (simplified)
Request
Could you please:
This information would help us handle the feature appropriately and set correct expectations for our users.
Thank you very much for your support — we are happy to provide additional information or having a chat to go deeper into details.
Steps to reproduce
use above-described code to acquire user's location using teams mobile
Expected behavior
promise will be resolved or rejected with appropriate error