N
Novu3w ago
Emmax

subscriber.isOnline in novu framework

Can't seem to access isOnline in the step subscriber data
17 Replies
Pawan Jain
Pawan Jain3w ago
@Emmax Use true/false value like this
No description
Emmax
EmmaxOP3w ago
Should I just edit the workflow I created in the code framework from the dashboard @Pawan Jain ?
Pawan Jain
Pawan Jain3w ago
@Emmax If you are using novu framework then workflow can only be managed via code. You will have to use skip feature for this https://docs.novu.co/framework/skip Unfortunately, isOnline flag is not available with framework workflows
Skip Function | Novu Documentation
Skip any step of the workflow based on a condition
Emmax
EmmaxOP3w ago
Yeah I saw the skip function, I'll just leave it like that for now, I mean if the user is offline they just won't get the push step so it's fine... I just wanted to not send the push notification if they aren't online
Pawan Jain
Pawan Jain3w ago
a small note, subscriber online flag is based on novu inbox component is loaded or not. We create ws connection with inbox
Emmax
EmmaxOP3w ago
I see No worries
Emmax
EmmaxOP3w ago
@Pawan Jain trying to update the prod bridge endpoint
No description
Emmax
EmmaxOP3w ago
I was able to sync to staging successfully
Pawan Jain
Pawan Jain3w ago
@Emmax Can you try with CLI sync method?
Emmax
EmmaxOP3w ago
From the local studio?
Novu_Bot
Novu_Bot3w ago
@Emmax, you just advanced to level 1!
Pawan Jain
Pawan Jain3w ago
CLI method
Emmax
EmmaxOP3w ago
Error
No description
Emmax
EmmaxOP3w ago
@Pawan Jain The staging worked fine, and I have confirmed that the endpoint is accessible
Pawan Jain
Pawan Jain3w ago
Can you please send us an email to [email protected] and share any of the workflow url so that I can dig into the issue Do you use any reverse proxy or cloudflare configuration with this prod URL?
Emmax
EmmaxOP3w ago
Yeah we do, we do on staging too though Yeah a different proxy was the issue It works now

Did you find this page helpful?