Managing online and offline status

Hello,

I need some advice regarding managing user status (online/offline). Currently, I’m using the properties [All users - (contains or doesn’t contain) - logged-in user] to handle different actions in my app. However, I have a collection that’s acting up, possibly because of React Native.

Initially, I didn’t have this problem because users were required to create an account to access the app. However, after Apple reviewed my app, they didn’t approve this model.

I’d like to know if the approach I’ve been using so far is considered best practice?

Hi, that seems wrong. Could you explain what you’re trying to achieve in more detail?

When I just want to do an action depending on if the user is logged in or not, I use ‘if’ and 'logged in user > email > is not empty"

I simply want to allow actions for logged-in users and redirect those who aren’t logged in to a login or account creation page.

I usually do - if logged in user - email/username - is not equal to - empty

Thanks for your reply

Let us know if you reached your goal.

Best

Eugen