JSON support in data node while sending notification for Android through Firebase Admin SDK
[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.
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
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
Is there any chance this has been handled somehow?