title: Xamarin.Essentials Share.RequestAsync() dont working on iOS
body: <p>i'm having some trouble trying to share some pdfs with xamarin.Essentials on iOS, method is working as expected in Android but when i run in iOS the method is called with no error but nothing happens, Share menu don't open and the page still running with no error, i'll post some code below:</p>
  
  <p>PCL View.xaml (where share button is in)</p>
  
  <pre><code>&lt;ContentPage  xmlns="http://xamarin.com/schemas/2014/forms"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:d="http://xamarin.com/schemas/2014/forms/design"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               mc:Ignorable="d"
               BackgroundColor="#6f7d8b" 
               x:Class="SeusPPPs.PDFViewer.View"
               xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
               ios:Page.UseSafeArea="true"
               xmlns:controls="clr-namespace:SeusPPPs"&gt;
      &lt;ContentPage.Content&gt;
          &lt;Grid  RowSpacing="0"&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="5*"/&gt;
                  &lt;RowDefinition Height="95*"/&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;Label Padding="10,10,10,10" Grid.Row="0" VerticalOptions="Center" Text="COMPARTILHAR" TextColor="White" FontAttributes="Bold" HorizontalOptions="StartAndExpand"&gt;
                  &lt;Label.GestureRecognizers&gt;
                      &lt;TapGestureRecognizer Tapped="SHARE" NumberOfTapsRequired="1"/&gt;
                  &lt;/Label.GestureRecognizers&gt;
              &lt;/Label&gt;
              &lt;Label Padding="10,10,10,10" Grid.Row="0" VerticalOptions="Center" Text="FECHAR" TextColor="White" FontAttributes="Bold" HorizontalOptions="EndAndExpand"&gt;
                  &lt;Label.GestureRecognizers&gt;
                      &lt;TapGestureRecognizer Tapped="Close" NumberOfTapsRequired="1"/&gt;
                  &lt;/Label.GestureRecognizers&gt;
              &lt;/Label&gt;
  
              &lt;controls:PdfWebView
              x:Name="PdfView" 
              Grid.Row="1"
                               HorizontalOptions="FillAndExpand"
                               VerticalOptions="FillAndExpand" /&gt;
          &lt;/Grid&gt;
      &lt;/ContentPage.Content&gt;
  
  &lt;/ContentPage&gt;
  </code></pre>
  
  <p>code-behind share event</p>
  
  <pre><code>public void SHARE(object sender,EventArgs e)
          {
              if (_filepath == null)
                  return;
              try
              {
                  Device.BeginInvokeOnMainThread(async () =&gt; {
                      await Share.RequestAsync(new ShareFileRequest() {
                           Title = "Compartilhar seu PPP",
                           File = new ShareFile(_filepath)
                      });
  
                  });
  
              }catch(Exception ex)
              {
                  throw new Exception(ex.Message);
              }
  
  
          }
  </code></pre>
  
  <p>Load PDF Method, working fine on both ios and android</p>
  
  <pre><code>private void CarregarPdf(string id)
          {
  
              var dependency = DependencyService.Get&lt;ILocalFileProvider&gt;();
  
              if (dependency == null)
              {
                  DisplayAlert("Erro ao carregar dependencia", "Dependencia não encontrada", "OK");
  
                  return;
              }
  
              var localPath = string.Empty;
  
              string url = "apiurl" + id;
  
              var fileName = Guid.NewGuid().ToString();
  
              using (var httpClient = new HttpClient())
              {
                  var pdfStream = Task.Run(() =&gt; httpClient.GetStreamAsync(url)).Result;
                  localPath =
                      Task.Run(() =&gt; dependency.SaveFileToDisk(pdfStream, $"{fileName}.pdf")).Result;
              }
  
              if (string.IsNullOrWhiteSpace(localPath))
              {
                  DisplayAlert("Error baixar PDF", "não foi possivel encontrar o arquivo", "OK");
  
                  return;
              }
              _filepath = localPath;
              PdfView.Uri = localPath;
          }
  </code></pre>
  
  <p>//EDIT</p>
  
  <p>I did notice the problem is only on physical devices, you can reproduce the error using this repository <a href="https://github.com/gojnimer147/ShareTest" rel="nofollow noreferrer">Github</a></p>