title: Push Notification use payload to open correct page
body: <p>First off I am using Xamarin Forms for a WP8, iOS and Android app.</p>
  
  <blockquote>
    <p><strong>Goal:</strong></p>
    
    <p>I want to go to a specific page when the toast is clicked depending
    upon the payload information of the toast notification.</p>
  </blockquote>
  
  <p>I have push notifications using Azure Notification Hubs all setup and working well. I use MVVMLight and their dependency injection to setup push notifications specifically for each platform.</p>
  
  <p>Each payload needs to be sent a little different due to the different formats required. With each you will notice I want to send a SignalId in the payload to perform a different action as required on the receiving device from regular push notifications.</p>
  
  <p>Android</p>
  
  <pre><code>{
    "data" : {
      "msg" : "message in here",
      "signalId" : "id-in-here",
    },
  }
  </code></pre>
  
  <p>iOS</p>
  
  <pre><code>{
  
      "aps" : { "alert" : "message in here" },
      "signalId" : "id-in-here"
  
  }
  </code></pre>
  
  <p>Windows Phone 8</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;wp:Notification xmlns:wp="WPNotification"&gt;
       &lt;wp:Toast&gt;
            &lt;wp:Text1&gt;category&lt;/wp:Text1&gt;
            &lt;wp:Text2&gt;message in here&lt;/wp:Text2&gt;
            &lt;wp:Param&gt;?signalId=id-in-here&lt;/wp:Param&gt;
       &lt;/wp:Toast&gt;
   &lt;/wp:Notification&gt;
  </code></pre>
  
  <p>.</p>
  
  <blockquote>
    <p><strong>Question:</strong></p>
    
    <p>How do I get this information in a Xamarin Forms app and redirect to
    the appropriate page when the application is reactivated because the
    user clicked on the toast notification? </p>
  </blockquote>
  
  <p>I want to get the payload information when the app loads, then say, yes this contains a SignalId, lets redirect to this page.</p>
  
  <p>At the moment all it does it show the application when a toast notification is clicked. Must I do it specific to the app, or is there a Xamarin Forms way?</p>
  
  <p>Any help appreciated even if you only know how to do it for one platform, I can probably work my way around the other platforms from there.</p>