N
Novu•2y ago
Mime

Error when testing trigger: Subscriber does not have an active integration

Hello when I test my trigger it return this error (only in push): Subscriber does not have an active integration what does it means ? The service worker is setup and device token too
46 Replies
PidginEnemy
PidginEnemy•2y ago
do you setup firebase provider in integrations section of novu admin panel ?
Novu_Bot
Novu_Bot•2y ago
@evgeniitolchennikov, you just advanced to level 2!
Mime
MimeOP•2y ago
that ?
Mime
MimeOP•2y ago
Mime
MimeOP•2y ago
PidginEnemy
PidginEnemy•2y ago
looks right
Mime
MimeOP•2y ago
I am resetting the json file maybe the pasting dont work good idk
PidginEnemy
PidginEnemy•2y ago
https://docs.novu.co/api/update-subscriber-credentials/ also you need to associate your device token from firebase with your subscriber id
Update subscriber credentials - Novu API Reference
Subscriber credentials associated to the delivery methods such as slack and push tokens.
Mime
MimeOP•2y ago
nothing same error
Novu_Bot
Novu_Bot•2y ago
@mime4x, you just advanced to level 2!
Mime
MimeOP•2y ago
done i did:
PidginEnemy
PidginEnemy•2y ago
check through the api, that your subscriber have a token
Mime
MimeOP•2y ago
okay intialize app get token with vapid key and sending that key to the server then novu subs set credentials (subscriberID, PushProviderIdEnum.FCM and devicesTokens set to the token that the client sended one second i did a novu.subscribers.get(subcriberID) and it returns {..., channels: [ { credentials: ..., _integrationId: ..., providerId: 'fcm' } ], ... }
PidginEnemy
PidginEnemy•2y ago
i look at source code, i think you have a problem with your integration https://github.com/novuhq/novu/blob/next/apps/worker/src/app/workflow/usecases/send-message/send-message-push.usecase.ts#L139 this error occurs when getIntegration method fails
GitHub
novu/apps/worker/src/app/workflow/usecases/send-message/send-messag...
The open-source notification infrastructure with fully functional embedded notification center - novuhq/novu
Mime
MimeOP•2y ago
and how can i repair this ?
PidginEnemy
PidginEnemy•2y ago
need time to debug, now i have no idea, i setup fcm too, but in my case i don't have same errors
PidginEnemy
PidginEnemy•2y ago
you saw this ? maybe you work with different environments?
Mime
MimeOP•2y ago
no the only thing i touched for now is the development envirnment wait just a thing: for the vapid key its the web push certificate but its the key pair or private key
PidginEnemy
PidginEnemy•2y ago
you need only public, located in a table
Mime
MimeOP•2y ago
okay this is good its not this
Mime
MimeOP•2y ago
is there a thing with this ?
PidginEnemy
PidginEnemy•2y ago
i don't try, the onesignal it's not opensource and the last one is expo (for react native apps)
Mime
MimeOP•2y ago
yeah but it shows disabled and not connect like other
PidginEnemy
PidginEnemy•2y ago
in my panel this integrations also available, i don't know why is disabled now you test locally or in a cloud ?
Mime
MimeOP•2y ago
cloud web.novu.co
PidginEnemy
PidginEnemy•2y ago
in my case i have novu self-hosted
Mime
MimeOP•2y ago
maybe i can try self host can i self host on windows ? (i have wsl if needed)
PidginEnemy
PidginEnemy•2y ago
oh, wait a second, you can click to this blocks
Novu_Bot
Novu_Bot•2y ago
@evgeniitolchennikov, you just advanced to level 3!
Mime
MimeOP•2y ago
?
PidginEnemy
PidginEnemy•2y ago
i look at my cloud account and see for example OneSignal is disabled, but i can click to card
Mime
MimeOP•2y ago
oooh its when i tested the integration (i can't remove the app id and api key)
Novu_Bot
Novu_Bot•2y ago
@mime4x, you just advanced to level 3!
Mime
MimeOP•2y ago
PidginEnemy
PidginEnemy•2y ago
yes i can't too )
PidginEnemy
PidginEnemy•2y ago
try to delete unusable integrations through api https://docs.novu.co/api/delete-integration/
Delete integration - Novu API Reference
Novu is an open-source notification infrastructure built for the engineering teams to help them build rich product notification experiences without constantly re-inventing the wheel.
Mime
MimeOP•2y ago
i'll do it with curl
PidginEnemy
PidginEnemy•2y ago
sorry, now no idea(
Mime
MimeOP•2y ago
done !
PidginEnemy
PidginEnemy•2y ago
same error?
Mime
MimeOP•2y ago
yes 😢
PidginEnemy
PidginEnemy•2y ago
check also that you have active fcm provider in your workflow
Mime
MimeOP•2y ago
i think its active
Mime
MimeOP•2y ago
PidginEnemy
PidginEnemy•2y ago
ok, in this part it's ok
Mime
MimeOP•2y ago
this is my workflow
Want results from more Discord servers?
Add your server