[Bug] Share.RequestAsync does not open a share sheet on iPad iOS 13.4.1[Bug]
Description
The sharing works fine on iPhone and even on iPad iOS13.3, but not on iPad's with iOS13.4.1 No share sheet appears.
Steps to Reproduce
Just call a Share.RequestAsync, optionally on the main thread. await Share.RequestAsync(new ShareFileRequest { Title = Title, File = new ShareFile(filepath, contentType) });
Expected Behavior
a share sheet should appear
Actual Behavior
nothing appears
Basic Information
Version with issue: Xamarin.Essentials 1.5.3.2 Last known good version: none IDE: Microsoft Visual Studio Community 2019 Version 16.5.5 Xamarin.iOS 13.16.0.13 Nuget Packages: Xamarin.Essentials 1.5.3.2 Affected Devices: iPad
This was fixed in https://github.com/xamarin/Essentials/issues/1247 I will have to reset, but best practice is to set a source rect.
Do you see any output?
This has been fixed
There still is an issue if you are using a PCL project.
The solution for me to get the share view to the right position on the iPad screen would be to use PresentationSourceBounds. Unfortunately this is not possible when using PCL because the option is only available for netstandard != 1.0 as seen in this screenshot from the sources:
I guess when using PCL NETSTANDARD1_0 is default, but I didn't dig into that much.