N
Novu8mo ago
bbaars

How to utilize the overrides data after the push notification has been sent.

I have an Expo React Native app using push notifications sent through the Novu SDK (using the Expo Push). I am sending Deep Link URLs within the Novu Trigger by adding the url to the overrides data.
payload: {
...
},
overrides: {
expo: {
data: {
url: {deepLinkUrl}
}
}
}
payload: {
...
},
overrides: {
expo: {
data: {
url: {deepLinkUrl}
}
}
}
In order to show notifications within the app, I'm using the Node SDK to fetch the subscribers recent push notifications:
await this.novu.messages.list({
page: 0,
limit: 20,
channel: ChannelTypeEnum.PUSH,
subscriberId: subscriber.subscriberID,
});
await this.novu.messages.list({
page: 0,
limit: 20,
channel: ChannelTypeEnum.PUSH,
subscriberId: subscriber.subscriberID,
});
Within the app, I'm showing notifications to the user as a list of their most recent notifications (see attached photo) My question is, does the response from Novu (the novu.messages.list) include the overrides url (aka the deeplink)? I'm wanting to allow the user to tap on a notification within this notification list and be deep-linked to the URL. (Let's say they don't tap on the Notification itself, but later open the app and click on a notification within the app). I'm onlying seeing the title and body within the push notification message sent back from Novu. Is this the proper way to go about it? Or should I be adding a variables to the push notification in order to use them later on? If so, is there a way to hide that variable from the user?
No description
3 Replies
bbaars
bbaars8mo ago
And to further clarify, deep linking with the overrides is working (only when a user taps on the system notification itself). I'm wanting to use that url later on to send them to the same point programatically.
Pawan Jain
Pawan Jain7mo ago
<@962730337379708980> could you please create a github issue for this? !bug