isOnline always false in Angular project β how to fix?
Hey everyone! π
I'm using the Novu library in an Angular project, and everything is rendering correctly. However, I'm having an issue where the isOnline property of the user always remains false, even though the setup seems correct and the widget is connected.
Is there anything specific I need to do in Angular to ensure that the user presence tracking works correctly?
For example:
Do I need to manually trigger any connection methods?
Is there any known issue when using Novu with Angular that affects isOnline?
Thanks in advance for your help! π
15 Replies
@Luiz Carvalho, you just advanced to level 1!
@Luiz Carvalho
Could you please share more information on
isOnline
field, where are you using this field?


sorry for the amount of images, but I'm using the step conditions of the inbox step and I'm making sure that the subscriberId is active
if i change it to false the message arrives correctly
@Luiz Carvalho
I will take a look on this
Thanks man!
One detail, I noticed that the notification center of the trigger for testing works with the isOnline property

any feedback? @Pawan Jain
@Luiz Carvalho
small information on isOnline field.
It is true when inbox is active in any of the broswer tab means inbox has created a socket connection with Novu ws server
@Pawan Jain right, even with everything operational and with the central rendered and socket connected the status is false, I am validating through the API "Retrieve a subscriber"
I'm using it like this:
the socket connects and keeps pinging

@Luiz Carvalho
Are you using EU or US region of our cloud?
US I think
API: wss://ws.novu.co/socket.io
@Pawan Jain Even if it doesn't work automatically, it would be great if the @novu/js sdk could do this manually, perhaps by hitting the API https://api.novu.co/v1/subscribers/string/online-status
@Luiz Carvalho
can you remove socket url and backend url?
in case of US region, these are auto configured
wow
this solved the problem it seems