N
Novu2y ago
empe

How to find my feedId?

When fetching notifications via the headless library - I see that the feedId: null I want to call the following function:
headlessService.markAllMessagesAsRead({
listener: (result: UpdateResult<number, unknown, undefined>) => {
console.log(result);
},
onSuccess: (count: number) => {
console.log(count);
},
onError: (error: unknown) => {
console.error(error);
},
feedId: ['feedOne', 'feedTwo'],
});
headlessService.markAllMessagesAsRead({
listener: (result: UpdateResult<number, unknown, undefined>) => {
console.log(result);
},
onSuccess: (count: number) => {
console.log(count);
},
onError: (error: unknown) => {
console.error(error);
},
feedId: ['feedOne', 'feedTwo'],
});
6 Replies
Pawan Jain
Pawan Jain2y ago
Go to in-app step Make sure you have enabled use feed option Copy feed Id from there
empe
empeOP2y ago
It's enabled
Pawan Jain
Pawan Jain2y ago
Add new feed You have 0 feeds
empe
empeOP2y ago
Why there is two feeds?
Pawan Jain
Pawan Jain2y ago
Screenshot? Oh sorry You can create as many feeds and assign any feed to template
empe
empeOP2y ago
Thanks pal
Want results from more Discord servers?
Add your server