Show that user is online or offline

Yes, when connected to the internet

Then you should be able to use above component. Check out NetworkTest.aia (2.1 KB) demonstrating the component!

This not the solution I am finding,
I am saying that if 1st user opened app or connected to internet then in 2nd user mobile it shows online but when 1st user close the app or disconnect to the internet then it shows the time at which he was gone offline.

Make a timer and upload the current timestamp every few minutes or Seconds. If the user1 goes offline the timer stops and the other user2 can get the Timestamp from the Database and if the last Timestamp is older than a few Minutes the user1 is offline and the screen from user2 can show the old Timestamp.

I don’t understand that how can I use clock.when I want to stop clock

Then read

1 Like

Not at the moment, but you have only to make a Clock with 30 Seconds and make a Firebase Post (Current Time) and Get (Time from other User).

If the Get Time is older than 2min it shows offline.

No, I am talking about how can I use clock in this

When clock timer completes then what I can do

Show us what you tried so far.

What online database you use?

I am using airtable

I don’t use Airtable but you have to upload the „current time in milliseconds“ function from the Clock Component to the Airtable on every Clock fire.

Are you saying that after 30 seconds I have save value to offline

No every 30 Seconds you have to upload the current time from the User

Ok but how can I show user online

User2 Get the Time from User1 from the Airtable and if the Time is older than the current real-time the user1 is offline.

oh yes. Thanks a lot

1 Like

May be good idea but his firebase free limit may expire soon die to this

What are the limitations of the firebase

Yes I limit this on my Apps to only 15min and on start of the App.