check user online if user has internet connection without firebase

153
November 09, 2018, at 10:20 PM

I want to make an application in which if the user is connected to the internet it must show as an online user on other devices without using firebase. what should be an appropriate way for that?

Answer 1

What about sending a "message" when you open the connection so the status will be set to "ONLINE" and when the app lose the connection or has been destroyed or go onPause send another message that will say to the server that the user is gone "OFFLINE".

Or you just can send a package from the server to the client every X seconds to check if the device is connected, if it's not responding just set his status to "OFFLINE"

Rent Charter Buses Company
READ ALSO
Allowing Password Resets using Xamarin Client And Own API

Allowing Password Resets using Xamarin Client And Own API

I'm struggling to find relevant articles on this topic and Googling the various search terms invariably returns mostly noise rather than signal

161
How to “Include” in a JSON API Post in PHP?

How to “Include” in a JSON API Post in PHP?

I am working with the Planning Center API, it was built to conform to the JSON API 10 specification

165
Create multiple nodes with JavaScript and SVG

Create multiple nodes with JavaScript and SVG

Is it possible to create multiple nodes? I have this:

164
Basic Javascript click function not loading

Basic Javascript click function not loading

I am just trying to change the font attribute via a click function real beginner stuff, however I want to check if the element has been clicked a second time and do something if so

152