public virtual void OnMessageReceived()

in messaging/testapp/Assets/Firebase/Sample/Messaging/UIHandler.cs [97:120]


    public virtual void OnMessageReceived(object sender, Firebase.Messaging.MessageReceivedEventArgs e) {
      DebugLog("Received a new message");
      var notification = e.Message.Notification;
      if (notification != null) {
        DebugLog("title: " + notification.Title);
        DebugLog("body: " + notification.Body);
        var android = notification.Android;
        if (android != null) {
            DebugLog("android channel_id: " + android.ChannelId);
        }
      }
      if (e.Message.From.Length > 0)
        DebugLog("from: " + e.Message.From);
      if (e.Message.Link != null) {
        DebugLog("link: " + e.Message.Link.ToString());
      }
      if (e.Message.Data.Count > 0) {
        DebugLog("data:");
        foreach (System.Collections.Generic.KeyValuePair<string, string> iter in
                 e.Message.Data) {
          DebugLog("  " + iter.Key + ": " + iter.Value);
        }
      }
    }