title: How to unsubscribe from messaging center when using the ON SCREEN back button on android?
body: <p>I am trying to unsubscribe from the messaging center when the user uses the back button (top left) on a certain page. I am already doing it for the hardware back button</p>
  <pre><code>protected override bool OnBackButtonPressed()
          {
  
              MessagingCenter.Unsubscribe&lt;App, string&gt;(this, &quot;Trolley&quot;);
              return base.OnBackButtonPressed();
          }
  </code></pre>
  <p>But it does not work for the back button showing on screen.
  I am aware of the existence of &quot;OnDisappearing&quot; but it does not work in my case because I actually need it to work when entering a new page.</p>
  <p>I am on Page 1 and subscribe to &quot;Trolley&quot; then I load page 2, send a message &quot;Trolley&quot; and finally close page 2. OnDisappearing triggers when I load page 2 so I wouldn't be able to receive the message if I where to unsubscribe in OnDisappearing.</p>