Jump to content

Disconnecting inactive devices.


Recommended Posts

darkassassin07
Posted (edited)

Im not sure if this is a bug, or a feature request. Both I guess...

 

Currently anyone on my server using the android app remains on the 'active devices' list until they explicitly logout, force quit the app/it runs out of ram and closes, or disconnect the device from networks.

 

This list is starting to get very cluttered with devices that don't disconnect themselves with no option to manually disconnect server side.

This also causes me to have no idea which devices are actually in use unless I go hunting for recent updates in the log.

 

 

I guess im asking for two things:

- the ability to disconnect a device from the dashboards active devices list.

- devices to disconnect themselves when they are not active (not streaming + no recent change in browsing)

 

 

 

 

Specifically the issue I have is my grandfather uses my server to view the images his security camera saves to my server on motion detection.

Problem is thats the only thing he uses the server for so I never have any log msgs about it (no msg for viewing images) just his two tablets constantly in the active devices with 'last seen X min ago' (which updates everytime the app decides to refresh the connection, roughly every 15-30min) I never have any actual data on whether he's online or not (more so the not)

Edited by darkassassin07
darkassassin07
Posted

More on the second point:

 

When a user logs in and browses around, then switches to something else (be that another app, or simply does something else all together) leaving the app signed in, possibly as a background app. After 15-30 min of no activity meaning the app has remained in the background, or simply hasn't changed what is currently displayed while browsing, the device/app should disconnect from the server, and re-authenticate when made active again either automatically with 'remember me' or requiring the user to sign in again, creating a completely new session as far as the server is concerned.

 

This would give a better aprox time when the user actually stopped using the app, and accurate times on when the user resumed usage

Posted

Basically, you want an auto logout setting like the Android TV app has?

darkassassin07
Posted

I don't have access to an android tv, but effectively an auto logout yes.

 

I think quite a few, if not most users tend to just press the home/recent apps button on their android device and select a new app. Not many take the time to explicitly close apps. So as long as these devices are on and connected to a network they are considered to be an active device by the server whether or not the app is actually being used.

 

Or at least that is what I am seeing with my server. I see devices displaying 'last seen 5 min ago' at 2am that i can garentee haven't even had the screen turned on for the last 4 hours.

 

I would imagine a device list full of active but idle devices would prevent the server from updating as well. Or at least restarting to apply those updates (on its own)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...