firebase / firebase-admin-java

Firebase Admin Java SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
525 stars 255 forks source link

JSON support in data node while sending notification for Android through Firebase Admin SDK #270

Open sauagarw opened 5 years ago

sauagarw commented 5 years ago

[READ] Step 1: Are you in the right place?

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

The Firebase message object takes Map<String, String> type for the data node. There is no support to send Map<String, Object> in the data node. With the legacy GCM protocol, it was possible to send multilevel map/JSON in the data node. Having this behaviour changed, would break the clients. If we convert the Object to String, this would break the clients.

google-oss-bot commented 5 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

mghhrn commented 4 years ago

Hi I think @sauagarw has suggested a feature. The suggested feature is the ability to send objects inside the data field of the message using Admin SDK and not only bounded by sending strings. Is it possible to implement this feature? Does any restriction from FCM's backends exist? @chong-shao

exaucae commented 1 year ago

Is there any chance this has been handled somehow?