Online status for chat app

Hello everyone!

This is my first post on the forum…

I have a chat messaging app in development and I want to show if users are online to other users by having a green circle next to the user’s picture.

Does anyone have an idea on how to do this?

Thanks!!!

Hello @Ryansigg and welcome :wave:
Did you try applying conditional visibly to an element?

Thank you!!

Could you explain a little simpler? Sorry I’m good with computers but new to Adalo

Sure no worries :wink:

1: First you will add a new Date & Time property to your User collection and call it Last Login.

1 New property

2: Create a new screen and add a custom list and bind it to your User collection. Next add your user profile image, Name, and your green Status Icon.

3: Now we are going to add an action to this screen view and update the Current User.

4: You will update the Last Login property with the Current Time.

5: Next we will set a conditional visibility to your Status Icon.

6: So when a logged in user has visited this screen within the last minute your Status Icon will be set to visible.

7: Result

Hope that helps :relaxed:

5 Likes

I marked this as the solution as it was perfectly explained in my opinion :slight_smile:

2 Likes

Devops thank you so much!!

So detailed and clear, im very grateful.

I will do this after work today. I owe you a beer.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.