N
Novu6mo ago
BartB

Pusher Beams Configuration

Hi, I have a pusher beams setup and I can with their console send push notifications to my web app. I'm trying to setup a novu workflow with pusher beams and I'm getting:
Subscriber does not have a configured channel
There are some integration keys/secrets that I setup wrongly or what could be possibly wrong here?
6 Replies
Pawan Jain
Pawan Jain6mo ago
@BartB Did you complete updating subscriber credentials step similar to FCM https://docs.novu.co/channels-and-providers/push/fcm#setting-device-token
Novu
Firebase Cloud Messaging (FCM) - Novu
Learn how to use the Firebase Cloud Messaging (FCM) provider to send push notifications using Novu
BartB
BartB6mo ago
@Pawan Jain when trying that with cURL I'm getting:
{"message":["credentials should not be null or undefined","credentials must be an object"],"error":"Bad Request","statusCode":400}
{"message":["credentials should not be null or undefined","credentials must be an object"],"error":"Bad Request","statusCode":400}
Pawan Jain
Pawan Jain6mo ago
can you share curl please?
BartB
BartB6mo ago
curl -L -X PUT 'https://api.novu.co/v1/subscribers/MySubscriberId/credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: ApiKey myApiKey' \
-d '{
"providerId": "pusher-beams",
"deviceTokens": ["web-device-token"],
"integrationIdentifier": "pusher-beams-identifier"
}'
curl -L -X PUT 'https://api.novu.co/v1/subscribers/MySubscriberId/credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: ApiKey myApiKey' \
-d '{
"providerId": "pusher-beams",
"deviceTokens": ["web-device-token"],
"integrationIdentifier": "pusher-beams-identifier"
}'
I changed credentials there
Pawan Jain
Pawan Jain6mo ago
Correct cURL
curl -L -X PUT 'https://api.novu.co/v1/subscribers/<subscriberId>/credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: ApiKey <API_KEY>' \
-d '{
"providerId": "pusher-beams",
"credentials": {
"deviceTokens": [
"web-device-token"
]
},
"integrationIdentifier": "pusher-beams-identifier"
}'
curl -L -X PUT 'https://api.novu.co/v1/subscribers/<subscriberId>/credentials' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: ApiKey <API_KEY>' \
-d '{
"providerId": "pusher-beams",
"credentials": {
"deviceTokens": [
"web-device-token"
]
},
"integrationIdentifier": "pusher-beams-identifier"
}'
BartB
BartB6mo ago
@Pawan Jain that url worked - the docs are incorrect. Do you know if I have to setup something specific in code for:
beamsClient.addDeviceInterest('hello')
beamsClient.addDeviceInterest('hello')
in order to receive push notifications from novu? I mean the workflow now works but I do not see push notifications.
Want results from more Discord servers?
Add your server