I have build a app in xamarin.forms, I manages to get share feature working for android platform using intent filters but how do I do that for iOS? I am new to objective-c and it all seems to confuse me more. I have tried sharing a file from my app and works however I am unable to get some of the apps in the app list to share. Here I am trying to share a audio file.
Here is the code:
var window = UIApplication.SharedApplication.KeyWindow; var subviews = window.Subviews; var view = subviews.Last(); var frame = view.Frame; frame = new RectangleF(0, 0, 0, 0); var uidic = UIDocumentInteractionController.FromUrl(new NSUrl(path, false)); var rc = uidic.PresentOpenInMenu(frame, view, true);
The above code works and gives me list of apps but does not show email app. Can anybody help me rectify the bug. Why wouldn't I get mail option?