title: Ionic : Hide splash screen only after the final view has been pushed to the stack
body: <p>I have following use case in my ionic app which is using <a href="https://github.com/apache/cordova-plugin-splashscreen" rel="nofollow noreferrer">splashsscreen</a> plugin :</p>
  
  <p><strong>1. If user is not logged in:</strong></p>
  
  <pre><code>Show SplashScreen&gt;  LoginPage is pushed to stack &gt; 
  Hide SplashScreen in login page
  </code></pre>
  
  <p><strong>2. If user is NOT logged in:</strong></p>
  
  <pre><code>Show SplashScreen &gt; Login page pushed to stack&gt; 
  Landing page pushed to stack (after user logs in) &gt; Hide SplashScreen.
  </code></pre>
  
  <p><em>Expected Behavior:</em></p>
  
  <p>In scenario-2, I expect SplashScreen to dismiss and show the Landing Page without showing the Login page</p>
  
  <p><em>Actual Behaviour:</em></p>
  
  <p>In scenario-2, SplashScreen is dismissed, login page is shown for a split second and then Landing page is shown.</p>
  
  <p>How can I achieve the expected behavior? Please let me know if any code snippet is required.</p>