FCMv1 - Unable to pass Integer or boolean or array under data

Mathew James 356 Reputation points
2024-06-20T10:57:36.4066667+00:00

We are in the process of migrating to new FCM V1.

The below payload Works fine in FCM V1

{
    "message": {
        "notification": {
            "title": "We are back in action with more Features.",
            "body": "here goes body details.",
            "image": "https://media.giphy.com/media/l0MYwEPpgVgyvy7YY/giphy.gif"
        },
        "data": {
            "Platform": "V1",
            "rideRequestId": null,
            "partitionKey": "NewYork",
            "rowKey": null,
            "message": "Test message from New Hub V1.",
            "SendFromTag": "MyTag",
            "Title": "We are back in action with new Notification.",
            "image": "https://media.giphy.com/media/l0MYwEPpgVgyvy7YY/giphy.gif",
            "SummaryText": "New  Notifications",
            "RealtimeData": null
        }
    }
}


But if I add a Property under data called say

"myValueInInteger": 1.0,

or a boolean like "myBoolean" : true,

or an Array, it dosent send the notification from Azure Notification hub through FCM V1.

Am I missing anything ? Please help.

Thanks in Advance!

-Mathew

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
295 questions
0 comments No comments
{count} votes