#Notification Feed is not returning any push notification data for particular subscriber
1 messages · Page 1 of 1 (latest)
Notification Feed is not returning any push notification data for particular subscriber
Can you share some SS @unkempt cobalt ?
I have received push notification in given subscriberId in mobile
how are you triggering it?
push notification or this curl command ?
push notification through
await this.novu.trigger(notificationTemplate, {
to: { subscriberId },
payload,
});
this is working
i am receiving push notifications in mobile
@celest oar can u please check it once?
@unkempt cobalt, you just advanced to level 2!
I believe this endpoint is to get the feed for in-app messages(only), this one is used often with filters that are applicable to the notification center. Like a feedIdentifier (for tab control in the notification center)
One sec, I'll send you an alternative @unkempt cobalt \
This one should work for you with adding query parameters of channels: push and search: subscriberId
https://docs.novu.co/api/get-notifications/
curl -X GET \
-H "Authorization: ApiKey REPLACE_WITH_API_KEY" \
https://api.novu.co/v1/notifications?channels=push&search=643e9......```
Let us know if that works for you @unkempt cobalt 💪
this curl command returns all the notifications . it is not returning the notification of a specific subscriber
Did you add the search = <subscriberId >
yes
Do they all have the same email?
no
For me its returning just those relevant🤔
Can you please send me the request you are doing?
res for 643cdece5e37b8979c853718
req
curl -X GET
-H "Authorization: ApiKey ****"
https://api.novu.co/v1/notifications\?channels\=push\&search\=643cdece5e37b8979c853718
curl -X GET
-H "Authorization: ApiKey **"
https://api.novu.co/v1/notifications?channels/=push/&search/=643cdece5e37b8979c853718
try this
Removing the / after notifications
or change it to \ instead of /
still not working
why am i getting data for 63b77869853cc3628e1ace39
"to": {
"subscriberId": "63b77869853cc3628e1ace39"
},
"payload": {
"message": "testing from thunder to user",
"navigationUrl": "/order"
},
curl -X GET
-H "Authorization: ApiKey ****"
https://api.novu.co/v1/notifications\?channels/\=push/\&search/\=643cdece5e37b8979c853718
Might have found something. In a meeting for now
Will look at this in some time
@ebon tree If it helps, it seems to happen in prod but not in dev. So, might have been fixed. But I have not got into it too much
It seems like a bug. @unkempt cobalt would you mind opening a bug report on github?
!issue
Let's open an issue over GitHub! That's the link you should follow: https://github.com/novuhq/novu/issues/new/choose
did you confirm from your side?
Yes, its very odd
Okay then i am opening an issue