I'm trying to send interactive push notifications with Expo. I can send normal push notifications fine, and I can even send local interactive push notifications, however I cannot send remote interactive push notifications
According to this section of the docs, you create a category, which I do:
Notifications.createCategoryAsync('daily_question', [
{
actionId: 'yes',
buttonTitle: 'Yes',
},
{
actionId: 'no',
buttonTitle: 'No',
},
]);
The working local notification then sends (with the interactive buttons) like this:
Notifications.presentLocalNotificationAsync({
title: '...',
body: '...',
data: {...},
categoryId: 'daily_question',
});
Is there a way to either:
_category keyTry this snack, I tried it on iOs and when I click (long enough) on the notifications, it shows custom action (button One, button two, three),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With