title: How to handle Firebase Notification i.e. Notification Messages and Data Messages in Android
body: <p>What is the best way to handle both Notification Messages and Data Messages in firebase using Xamarin Android, while the user is in Foreground and Background?</p>
  
  <p>Also, how do I get the notification data, for example, the text of a particular notification?</p>
  
  <p>PS: I have visited the following threads and none actually helped :</p>
  
  <p><a href="https://stackoverflow.com/questions/44540568/when-device-screen-off-then-how-to-handle-firebase-notification">When device screen off then how to handle firebase notification?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/38888917/firebase-notification-and-data">Firebase Notification and Data</a></p>
  
  <p><a href="https://stackoverflow.com/questions/43074650/display-firebase-notification-data-message-on-android-tray">Display firebase notification data-message on Android tray</a></p>