cmendoza
cmendoza
Explore posts from servers
NNovu
Created by cmendoza on 9/24/2023 in #💬│support
To `data` not getting saved with the subscriber upon triggering workflow (REST API)
Oh okay, thanks for this 👍🏽
3 replies
NNovu
Created by cmendoza on 9/14/2023 in #💬│support
Triggered notification returned 201 but did not receive anything nor it showed in the activity feed
Thanks appreciate it!
11 replies
NNovu
Created by cmendoza on 9/13/2023 in #💬│support
What is the best way to remove a single deviceToken from a subscriber that has several deviceTokens
The challenge in push based providers that they can have multiple tokens
Yeah i hear you on that 👍🏽 Hmm, my thinking is a feature on the api where I can just feed the specific token that I want to delete from the array (just for context: our app keeps track of the different devices that each user uses, so it's possible to modify/delete them individually). I'm thinking maybe deviceTokens (and other array types) can have an alternate form (when updating), something like
{
"credentials": {
"deviceTokens": {
"remove": ["token3", "token1"]
},
"webhookUrl": ""
},
"providerId": "fcm"
}

// given a `deviceTokens` of ["token1", "token2", "token3"] the above will result to ["token2", "token4"]
{
"credentials": {
"deviceTokens": {
"remove": ["token3", "token1"]
},
"webhookUrl": ""
},
"providerId": "fcm"
}

// given a `deviceTokens` of ["token1", "token2", "token3"] the above will result to ["token2", "token4"]
Just giving an idea of what I'm wishing for 😅
10 replies
NNovu
Created by cmendoza on 9/14/2023 in #💬│support
Triggered notification returned 201 but did not receive anything nor it showed in the activity feed
Yeah, my recent requests have been successful. But that particular request stood out and a little concerning because we were returned a transactionId but there's no trace of it in the system. Have you had similar incidents like this in the past? I'm wondering what could have caused it.
11 replies
NNovu
Created by cmendoza on 9/13/2023 in #💬│support
What is the best way to remove a single deviceToken from a subscriber that has several deviceTokens
Okay understood. Our app involves managing deviceTokens (adding/deleting) so just wanted to make sure I'm not missing anything regarding moving around deviceTokens. (I'm still hoping there could be some sort of atomic operation for deleting specific deviceTokens though) Thanks!
10 replies
NNovu
Created by cmendoza on 9/14/2023 in #💬│support
Triggered notification returned 201 but did not receive anything nor it showed in the activity feed
Hey @Pawan Jain , thanks for checking. I sent that particular request via postman, but this should be the equivalent (or atleast similar)
curl --location --request POST 'https://api.novu.co/v1/events/trigger' \
--header 'Authorization: ApiKey <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "event-reminder",
"to": {
"subscriberId": "6500f94b1a7614493d8408cc"
},
"payload": {
"title": "Title",
"body": "Body23",
"link": "https://skylight.org",
"icon": "https://skylight.org/favicon.png"
},
"overrides": {
"fcm": {
"type": "data"
}
}
}'
curl --location --request POST 'https://api.novu.co/v1/events/trigger' \
--header 'Authorization: ApiKey <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "event-reminder",
"to": {
"subscriberId": "6500f94b1a7614493d8408cc"
},
"payload": {
"title": "Title",
"body": "Body23",
"link": "https://skylight.org",
"icon": "https://skylight.org/favicon.png"
},
"overrides": {
"fcm": {
"type": "data"
}
}
}'
11 replies
NNovu
Created by cmendoza on 9/14/2023 in #💬│support
Triggered notification returned 201 but did not receive anything nor it showed in the activity feed
FYI: I sent the exact same request a couple of times and they got received successfully, so it could not have been due to a bad request
11 replies