Rustam
Rustam

Reputation: 61

Push notification GCM DELPHI XE8

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

Answers (2)

Rustam
Rustam

Reputation: 61

Solved! I used "message" instead of "Message".

Upvotes: 3

Uwe Raabe
Uwe Raabe

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

Related Questions