Skip to content
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

Closed
tfe2012 opened this issue Jan 23, 2017 · 0 comments
Closed

Blank message #47

tfe2012 opened this issue Jan 23, 2017 · 0 comments

Comments

@tfe2012
Copy link

tfe2012 commented Jan 23, 2017

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);
}
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants