title: Method not executed inside lambda callback of MessageCenter xamarin forms
body: <p>I a using the MessageCenter class in order to pass a string from Android native code to Xamarin Shared code.But I face the following issue. On the bellow code I am sending the string and they i can receive it but from the expressions inside the Action delegate only the debug statement is executed the other are simply ignored.</p>
  
  <pre><code>         public partial class Search : ContentPage
  {
  
  
  
      public Search()
      {
          InitializeComponent();
  
         }
  
  
  
  
  
  
          MessagingCenter.Send&lt;string&gt;("xamarin", "FromAndroid");
  
          //receing msg from android shared intent between apps
          MessagingCenter.Subscribe&lt;string&gt;(this, "FromAndroid", (msg) =&gt;
         {
  
             searchBar.Text = msg;   // that line do not update my UI search text if is outside is 
          updated
             Debug.WriteLine("+++++++++++++++++++++++++++++++++++ " + msg);
  
  
  
  
         });
  
  
      }
  
  
  
  
  
  
  
  
  
  
  
  }
  </code></pre>
  
  <p>Normally the Send method is located in the Android Project I just move it here for brevity. I can confirm that the  Subscribe method successfully receive the "xamarin" string .</p>