How to specify category identifier via raw FCM v1 API?

Please provide the following:

  1. SDK Version: 49
  2. Platforms(Android/iOS/web/all): Android

I am setting up a category in my client code like this:

await Notifications.setNotificationCategoryAsync(
                    identifier: 'answer',
                    buttonTitle: 'Answer',
                    options: {
                        opensAppToForeground: true
                    identifier: 'decline',
                    buttonTitle: 'Decline',
                    options: {
                        opensAppToForeground: false,
                        isDestructive: true

I can successfully trigger this custom UI/buttons via a local notification by specifying the categoryIdentifier key in the local notification payload.

However, I am not using Expo Notification service to issue remote notifications, but rather, I am hitting FCM API v1 directly via my web service.

I don’t see categoryIdentifier anywhere in the FCM spec. Can someone help me understand what I need to add to my FCM payload in order to trigger this category?

All I really need is an example of what the Expo Notification service sends as an FCM payload when a category is specified.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.