Please provide the following:
- SDK Version: 49
- Platforms(Android/iOS/web/all): Android
I am setting up a category in my client code like this:
await Notifications.setNotificationCategoryAsync(
'incomingCall',
[
{
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.
Thanks