Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

[Bug] Share.RequestAsync does not open a share sheet on iPad iOS 13.4.1[Bug]

Open maschunya opened this issue 6 years ago • 3 comments

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

maschunya avatar May 19 '20 12:05 maschunya

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?

jamesmontemagno avatar May 21 '20 16:05 jamesmontemagno

This has been fixed

davehump avatar Jun 08 '20 18:06 davehump

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: 2DCB2856-9B92-4733-BD53-3D47AB0691C9 I guess when using PCL NETSTANDARD1_0 is default, but I didn't dig into that much.

its-stark avatar Sep 15 '20 22:09 its-stark