-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blank message #47
Labels
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi why I get always empty message from server?
public void OnMessageReceived(object sender, Firebase.Messaging.MessageReceivedEventArgs e) {
DebugLog("Received a new message"); <--- this work
var notification = e.Message.Notification;
if (notification != null) {
DebugLog("title: " notification.Title); <--- this doesn't work
DebugLog("body: " notification.Body);
}
if (e.Message.From.Length > 0)
DebugLog("from: " e.Message.From); <--- this doesn't work
if (e.Message.Data.Count > 0) {
DebugLog("data:"); <--- this doesn't work
foreach (System.Collections.Generic.KeyValuePair<string, string> iter in
e.Message.Data) {
DebugLog(" " iter.Key ": " iter.Value);
}
}
}
The text was updated successfully, but these errors were encountered: