2

I'm starting with the new Google service for the notifications, Firebase Cloud Messaging. I am able to send notifications from my Firebase User Console to my Android device for testing.

The problem I'm struggling with is that I can't send a complex structured data via Console > Compose Message. For example "prop3": {"inner": 42, "inner2": "test data", {"go": "deeper"}} becomes "prop3": "{\"inner\": 42, \"inner2\": \"test data\", {\"go\": \"deeper\"}}". I expect it to be a JSON tree with nested nodes, but what I get is a plain string.

problem demo

Is there any way to send a notification with nested properties using the Firebase console?

naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259

1 Answers1

0

I don't think you can do this on console. Hit FCM server with custom request.

You can refer this answer

https://stackoverflow.com/a/30778643/4620609

Samuel Robert
  • 10,106
  • 7
  • 39
  • 60