N
Novu•16mo 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•16mo ago
do you setup firebase provider in integrations section of novu admin panel ?
Novu_Bot
Novu_Bot•16mo ago
@evgeniitolchennikov, you just advanced to level 2!
Mime
Mime•16mo ago
that ?
Mime
Mime•16mo ago
Mime
Mime•16mo ago
PidginEnemy
PidginEnemy•16mo ago
looks right
Mime
Mime•16mo ago
I am resetting the json file maybe the pasting dont work good idk
PidginEnemy
PidginEnemy•16mo 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
Mime•16mo ago
nothing same error
Novu_Bot
Novu_Bot•16mo ago
@mime4x, you just advanced to level 2!
Mime
Mime•16mo ago
done i did:
PidginEnemy
PidginEnemy•16mo ago
check through the api, that your subscriber have a token
Mime
Mime•16mo 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•16mo 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
Mime•16mo ago
and how can i repair this ?
PidginEnemy
PidginEnemy•16mo 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•16mo ago
you saw this ? maybe you work with different environments?
Mime
Mime•16mo 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•16mo ago
you need only public, located in a table
Mime
Mime•16mo ago
okay this is good its not this
Mime
Mime•16mo ago
is there a thing with this ?
PidginEnemy
PidginEnemy•16mo ago
i don't try, the onesignal it's not opensource and the last one is expo (for react native apps)
Mime
Mime•16mo ago
yeah but it shows disabled and not connect like other
PidginEnemy
PidginEnemy•16mo ago
in my panel this integrations also available, i don't know why is disabled now you test locally or in a cloud ?
Mime
Mime•16mo ago
cloud web.novu.co
PidginEnemy
PidginEnemy•16mo ago
in my case i have novu self-hosted
Mime
Mime•16mo ago
maybe i can try self host can i self host on windows ? (i have wsl if needed)
PidginEnemy
PidginEnemy•16mo ago
oh, wait a second, you can click to this blocks
Novu_Bot
Novu_Bot•16mo ago
@evgeniitolchennikov, you just advanced to level 3!
Mime
Mime•16mo ago
?
PidginEnemy
PidginEnemy•16mo ago
i look at my cloud account and see for example OneSignal is disabled, but i can click to card
Mime
Mime•16mo ago
oooh its when i tested the integration (i can't remove the app id and api key)
Novu_Bot
Novu_Bot•16mo ago
@mime4x, you just advanced to level 3!
Mime
Mime•16mo ago
PidginEnemy
PidginEnemy•16mo ago
yes i can't too )
PidginEnemy
PidginEnemy•16mo 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
Mime•16mo ago
i'll do it with curl
PidginEnemy
PidginEnemy•16mo ago
sorry, now no idea(
Mime
Mime•16mo ago
done !
PidginEnemy
PidginEnemy•16mo ago
same error?
Mime
Mime•16mo ago
yes 😢
PidginEnemy
PidginEnemy•16mo ago
check also that you have active fcm provider in your workflow
Mime
Mime•16mo ago
i think its active
Mime
Mime•16mo ago
PidginEnemy
PidginEnemy•16mo ago
ok, in this part it's ok
Mime
Mime•16mo ago
this is my workflow
Want results from more Discord servers?
Add your server