Reputation: 61
To send a push I use json:
‘{"registration_ids":["' + Edit1.Text + '"],"data":{"id":"0","Message":"‘ + Edit2.Text + ‘"}}’
The push is receiving in the push panel normal and opening program too. Also I can read the text inside of client-programm. The problem is, I have no the text of message in the push panel. Only name of the client program.
Upvotes: 2
Views: 435
Reputation: 47714
To display information in the push panel you should give that information in the notification payload:
‘{"registration_ids":["' + Edit1.Text + '"],
"data":{"id":"0", "Message":"' + Edit2.Text + '"},
"notification":{"title":"MyTitle", "body":"' + Edit2.Text + '"}}'
Upvotes: 2