BartB
BartB
NNovu
Created by BartB on 3/21/2024 in #💬│support
FCM web push duplicate
That doesn't seem right. Even if I do:
const messaging = getMessaging(firebaseApp);
onBackgroundMessage(messaging, (payload: MessagePayload) => {
self.registration.showNotification('123', {});
});
const messaging = getMessaging(firebaseApp);
onBackgroundMessage(messaging, (payload: MessagePayload) => {
self.registration.showNotification('123', {});
});
I'm getting double notifications. The backend sends notification on it's own - it's novu that is sending this notification.
7 replies
NNovu
Created by BartB on 3/12/2024 in #💬│support
Pusher Beams Configuration
@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.
7 replies
NNovu
Created by BartB on 3/12/2024 in #💬│support
Pusher Beams Configuration
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
7 replies
NNovu
Created by BartB on 3/12/2024 in #💬│support
Pusher Beams Configuration
@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}
7 replies