title: Xamarin Forms change label when recieve firebase notification in while app Is open?
body: <p>Hi pals it's possible to use broadcastreceiver in xamarin forms</p>
  
  <p>in Android Studio(Java) I use broadcastreceiver:</p>
  
  <ol>
  <li><p>Receiving a Firebase notification in foreground</p></li>
  <li><p>And change update of label each time recieving a notification.</p></li>
  </ol>
  
  <p><strong>its possible to use in XF ? or i should do it for Android and IOS separately</strong></p>
  
  <blockquote>
    <p>I Already have that view with c# code</p>
  </blockquote>
  
  <p>i put this gif
  <a href="https://media.giphy.com/media/1mikDug30CysbMCGqA/giphy.gif" rel="nofollow noreferrer">https://media.giphy.com/media/1mikDug30CysbMCGqA/giphy.gif</a></p>
  
  <p>I want each time i receive a notificacion update the label with the new notification data: </p>
  
  <pre><code>txtUsuario.Text 
  </code></pre>
  
  <p>and do other functions in while the app is open</p>
  
  <pre><code>CrossFirebasePushNotification.Current.OnNotificationReceived += async (s, p) =&gt;
          {
              //EJECUTAR ESTE METODO [OnNotificationReceived] POR DEFECTO Y NO CUANDO HAGA CLICK EN EL EVENTO
              try
              {
                  Console.Out.WriteLine("TOKEN CONSOLE : + p." + p.Data);
                  notificationReceived = p.Data.ToString();
                  object objetoRecivido = p.Data;
                  var data = new
                  {
                      codigo = 0,
                      nombreUsuario = ""
                  };
                  //https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/FirebaseNotifications.md
                  var json = JsonConvert.SerializeObject(p.Data, Newtonsoft.Json.Formatting.Indented);
                  myobject = new AOCAdvancedSettings();
                  myobject = JsonConvert.DeserializeObject&lt;AOCAdvancedSettings&gt;(json);
                  System.Diagnostics.Debug.WriteLine("Received");
                  txtUsuario.Text = myobject.nombreUsuario;
                  Device.BeginInvokeOnMainThread(() =&gt; {
  
                      txtUsuario.Text = (myobject != null) ? myobject.nombreUsuario : "usuario";
  
                  });
  </code></pre>