title: Splashscreen not appearing when app is open and in background in iOS
body: <p>I am using a Xamarin Forms application with Azure push notification. I need to redirect to a splash screen when my push notification is clicked. Android working fine. But in iOS a splash screen is not visible.</p>
  <p>I tried the below example. But it's not hitting on the <code>OnAppearing()</code> method.</p>
  <p><a href="https://stackoverflow.com/questions/52186542/onappearing-method-on-ios">example</a></p>
  <p>This is my splash screen code</p>
  <pre><code>    public Splash(string PushNotification)
      {
          PushNotificationPage = PushNotification;
          LoadSettings();
          NavigationPage.SetHasNavigationBar(this, false);
          var sub = new AbsoluteLayout {
              BackgroundColor = Code.Application.Instance.CurrentReources.SplashScreenBackground
          };
  
          splashImage = new Image
          {
              Source = SplashImage
          };
          AbsoluteLayout.SetLayoutFlags(splashImage, AbsoluteLayoutFlags.PositionProportional);
          AbsoluteLayout.SetLayoutBounds(splashImage, new Rectangle(0.5, 0.5, AbsoluteLayout.AutoSize, AbsoluteLayout.AutoSize));
  
          sub.Children.Add(splashImage);
          if (Device.RuntimePlatform == Device.Android)
          {
              splashImage.HeightRequest = 270;
              splashImage.WidthRequest = 270;
          }
          this.Content = sub;
      }
  
      protected override async void OnAppearing()
      {
          (App.Current as App).OnResumeHandler += Handle_OnResumeHandler;
          base.OnAppearing();
          
          splashImage.Opacity = 0;
          await splashImage.FadeTo(1, 3000);
  
          Xamarin.Forms.Application.Current.MainPage = new NavigationPage(new LoginPage(PushNotificationPage));
  
  
      }
  
      void Handle_OnResumeHandler(object sender, EventArgs e)
      {
          Console.WriteLine(&quot;OnPauseResumeWithPage&quot;);
      }
  
      protected override void OnDisappearing()
      {
          (App.Current as App).OnResumeHandler -= Handle_OnResumeHandler;
          base.OnDisappearing();
      }
  </code></pre>
  <p>Also added below method to App.cs</p>
  <pre><code>     protected override void OnSleep()
      {
          OnSleepHandler?.Invoke(null, new EventArgs());
      }
  
      protected override void OnResume()
      {
          OnResumeHandler?.Invoke(null, new EventArgs());
      }
  </code></pre>