firebase-admin-java icon indicating copy to clipboard operation
firebase-admin-java copied to clipboard

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

Open sauagarw opened this issue 6 years ago • 3 comments

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

  • For issues or feature requests related to the code in this repository file a Github issue.
    • If this is a feature request make sure the issue title starts with "FR:".
  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Operating System version: Windows 10 Enterprise, 1803
  • Firebase SDK version: 6.8.0
  • Library version: _____
  • Firebase Product: Cloud Messaging (auth, database, storage, etc)

[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.

sauagarw avatar May 01 '19 06:05 sauagarw

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

google-oss-bot avatar May 01 '19 06:05 google-oss-bot

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

mghhrn avatar Sep 04 '19 14:09 mghhrn

Is there any chance this has been handled somehow?

exaucae avatar May 16 '23 22:05 exaucae