N
Novu2w ago
Emmax

subscriber.isOnline in novu framework

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