You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error is thrown when attempting to use the navigator.share method within the Microsoft Teams Tab application: Error: NotAllowedError: Failed to execute ‘share’ on ‘Navigator’: Permission denied
This error prevents the possibility of sharing files using the built-in Windows share functionality.
Question:
Is there a way to request permissions from the user or to add this permission to the app container to enable file sharing?
The text was updated successfully, but these errors were encountered:
ZimnitskiYury
changed the title
navigator.share throws Error: NotAllowedError: Failed to execute 'share' on 'Navigator': Permission denied
navigator.share throws NotAllowedError: Failed to execute 'share' on 'Navigator': Permission denied
Mar 5, 2024
Hello @ZimnitskiYury - Could you please share the code base and repro steps, so that we can try it from our end?
Also, please the reference doc you are following.
if (microsoftTeams.app.isInitialized()) {
const isShareSupported = 'share' in navigator && 'canShare' in navigator;
if (isShareSupported) {
navigator.share({text: 'test'});
}
}
A web-share Permissions Policy has been used to block the use of this feature, the window does not have transient activation, or a file share is being blocked due to security considerations.
Hi @ZimnitskiYury. This feature is actually not available in Teams JS. We have added a feature request for it to our backlog that we will review as part of our regular planning cycles, but I'm not able to provide any commitments or ETA at this time unfortunately. If there is any additional information on your use case or the value from your perspective that you would like to share I am happy to add it to the ticket for when we review it.
Issue:
An error is thrown when attempting to use the
navigator.share
method within the Microsoft Teams Tab application:Error: NotAllowedError: Failed to execute ‘share’ on ‘Navigator’: Permission denied
This error prevents the possibility of sharing files using the built-in Windows share functionality.
Question:
Is there a way to request permissions from the user or to add this permission to the app container to enable file sharing?
The text was updated successfully, but these errors were encountered: