Registering a document type for iOS image sharing from Photos

Jose Simas 21 Reputation points
2021-02-11T12:14:51.547+00:00

I would like to have my xamarin forms app appear in the list of possible targets of the image share in the iOS Photos app. I followed the directions in this blog:

https://codemilltech.com/sending-files-to-a-xamarin-forms-app-part-1-ios/

Changing it for images instead of PDFs but it does not work. Basically, I added a Document Type to the info.plist for the type public.image and when I share an image from Files or from the Mail app then my app appears in the list and it works correctly. But no matter what I do I cannot make my app appear in the Photos sharing list.

Has anyone been able to get this working?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,349 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-02-12T08:09:07.37+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Mail apps use UIDocumentInteractionController to share between apps but Photo uses UIActivityViewController to share items. This requires you to implement the share extension for your application: https://learn.microsoft.com/en-us/samples/xamarin/ios-samples/ios8-share/.

    Refer tp https://forums.xamarin.com/discussion/comment/402298/#Comment_402298.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.