N
Novu6mo ago
Emmax

subscriber.isOnline in novu framework

Can't seem to access isOnline in the step subscriber data
17 Replies
Pawan Jain
Pawan Jain6mo ago
@Emmax Use true/false value like this
No description
Emmax
EmmaxOP6mo ago
Should I just edit the workflow I created in the code framework from the dashboard @Pawan Jain ?
Pawan Jain
Pawan Jain6mo 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
EmmaxOP6mo 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 Jain6mo ago
a small note, subscriber online flag is based on novu inbox component is loaded or not. We create ws connection with inbox
Emmax
EmmaxOP6mo ago
I see No worries
Emmax
EmmaxOP6mo ago
@Pawan Jain trying to update the prod bridge endpoint
No description
Emmax
EmmaxOP6mo ago
I was able to sync to staging successfully
Pawan Jain
Pawan Jain6mo ago
@Emmax Can you try with CLI sync method?
Emmax
EmmaxOP6mo ago
From the local studio?
Novu_Bot
Novu_Bot6mo ago
@Emmax, you just advanced to level 1!
Pawan Jain
Pawan Jain6mo ago
CLI method
Emmax
EmmaxOP6mo ago
Error
No description
Emmax
EmmaxOP6mo ago
@Pawan Jain The staging worked fine, and I have confirmed that the endpoint is accessible
Pawan Jain
Pawan Jain6mo ago
Can you please send us an email to support@novu.co 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
EmmaxOP6mo 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?