Reputation: 117
I've been trying to integrate my Universal Windows Platform (UWP) app into the share menu of Microsoft Edge, but despite adding the necessary configurations to my package.appxmanifest file, it still doesn't appear in the share menu.
Here's what I've added to my package.appxmanifest file:
<uap:Extension Category="windows.shareTarget">
<uap:ShareTarget Description="share">
<uap:SupportedFileTypes>
<uap:SupportsAnyFileType/>
</uap:SupportedFileTypes>
<uap:DataFormat>Web link</uap:DataFormat>
<uap:DataFormat>Text</uap:DataFormat>
<uap:DataFormat>Images</uap:DataFormat>
</uap:ShareTarget>
</uap:Extension>
I'm still unable to get my app to show up in the Edge share menu. What am I missing here?
Upvotes: 0
Views: 98
Reputation: 117
The issue was that I needed to include formatting for both Uri and Html. After adding them, the problem was resolved:
<uap:ShareTarget Description="share">
<uap:SupportedFileTypes>
<uap:SupportsAnyFileType/>
</uap:SupportedFileTypes>
<uap:DataFormat>WebLink</uap:DataFormat>
<uap:DataFormat>Uri</uap:DataFormat>
<uap:DataFormat>Text</uap:DataFormat>
<uap:DataFormat>Images</uap:DataFormat>
<uap:DataFormat>Html</uap:DataFormat>
</uap:ShareTarget>
Additionally, I discovered an example repository for creating the app share target: Windows Universal Samples - Share Target.
Upvotes: 0