user-inactivity

Notify inactive users (who have not opened the app for 7 days) even if Android app gets killed or runs in background

依然范特西╮ 提交于 2020-08-26 13:35:33
问题 I have a requirement where I need to notify inactive users (who have not opened the app for 7 days). This means the notification must be sent if the app is in background for 7 days or the app has been killed and not used for 7 days. I followed an algorithm using AlarmManager similar to this answer but the notifications are not sent if the app gets killed. I tried to integrate BroadcastReceiver as shown below but it creates an infinite loop when I call it from OnDestroy() of CheckRecentRun

Notify inactive users (who have not opened the app for 7 days) even if Android app gets killed or runs in background

北城余情 提交于 2020-08-26 13:34:39
问题 I have a requirement where I need to notify inactive users (who have not opened the app for 7 days). This means the notification must be sent if the app is in background for 7 days or the app has been killed and not used for 7 days. I followed an algorithm using AlarmManager similar to this answer but the notifications are not sent if the app gets killed. I tried to integrate BroadcastReceiver as shown below but it creates an infinite loop when I call it from OnDestroy() of CheckRecentRun

Notify inactive users (who have not opened the app for 7 days) even if Android app gets killed or runs in background

时间秒杀一切 提交于 2020-08-26 13:34:21
问题 I have a requirement where I need to notify inactive users (who have not opened the app for 7 days). This means the notification must be sent if the app is in background for 7 days or the app has been killed and not used for 7 days. I followed an algorithm using AlarmManager similar to this answer but the notifications are not sent if the app gets killed. I tried to integrate BroadcastReceiver as shown below but it creates an infinite loop when I call it from OnDestroy() of CheckRecentRun

Check whether user is inactive

 ̄綄美尐妖づ 提交于 2019-12-23 03:01:50
问题 How do I check user is inactive? I have this: class UserActivity : IMessageFilter { private double afk_time = 0.1;//minutes private DateTime last_activity = DateTime.Now; public static bool inactive = false; private int WM_LBUTTONDOWN = 0x0201; private int WM_MBUTTONDOWN = 0x0207; private int WM_RBUTTONDOWN = 0x0204; private int WM_MOUSEWHEEL = 0x020A; private int WM_MOUSEMOVE = 0x0200; private int WM_KEYDOWN = 0x0100; public bool PreFilterMessage(ref Message m) { if (m.Msg == WM_LBUTTONDOWN

User Inactivity Logout PHP

那年仲夏 提交于 2019-12-19 02:49:21
问题 I want my users to be logged out automatically after X minutes of inactivity. I also want to have all sessions destroyed. How can this be done? How can I check for inactivity then perform a function to log them out??? 回答1: You could also do: $_SESSION['loginTime'] = time(); On every page, and when the user is trying to navigate and he has been inactive for an twenty minutes you can log him out like this: if($_SESSION['loginTime'] < time()+20*60){ logout(); } 回答2: I tired Michiels approach and

application compiles every 15 minutes

十年热恋 提交于 2019-12-18 21:52:33
问题 I am using ASP.Net4 MVC2 for my application. The first person using the application usually experiences a long wait before the application responds. After that the application is pretty responsive. If the application is idle for 15 minutes, the same person or the next person using the application will experience long wait again. It looks like the application compiles after being idle for 15 minutes. Can someone tell me where I should look to trouble shoot the problem? Thanks. 回答1: It is

How to detect user inactivity in Android

限于喜欢 提交于 2019-12-16 20:57:28
问题 User start my app and logs in. Selects Session Timeout to be 5 mins. Does some operations on the app. (all in foreground) Now User bring Myapp to background and starts some other app. ----> Count down timer starts and logs out user after 5 mins OR user turns the screen OFF. ----> Count down timer starts and logs out user after 5 mins I want the same behavior even when the app is in the foreground but user doesn't interact with the app for a long-time say 6-7 mins. Assume the screen is ON all

How to avoid client firewall closing connection because inactivity while processing data on Grails

痴心易碎 提交于 2019-12-08 04:04:00
问题 I have one Grails working on the server on Tomcat. This app is an web interface to export information from the MySQL server. This information can be exported depending on the selection that you did, but takes some time. The biggest part or process is around 40min. This is the time that it needs to export all the information from the database and return to user compressed in one zip file. Everything is working correctly but we have a problem with one client. They have some kind of proxy

Are there any javascript/jQuery events that are like an “onmousestop” or any events equivalent to “onmousewheel” for an optical mouse and/or touchpad?

匆匆过客 提交于 2019-12-08 03:28:37
问题 I am trying to create a Javascript-based inactivity timeout for my site. The function which controls inactivity is very simple; a form value recording the "initial time" is reset concomitantly with any event (the assumption being any event should be indicative of activity): function ResetTimeout() { document.forms.TimeoutForm.initialtime.value = (new Date().getTime()) / 1000; }//This function is called on each event, such as an onclick In a separate function, when new Date().getTime() (that

How specifically does one detect that a user is idle on Windows 7?

谁都会走 提交于 2019-12-07 21:57:06
问题 Given that Outlook runs in most offices, and given that a screensaver may user CPU, or network file copies, or virus scans, or network installs by the admin (granted, that usually happens when you're logged out), and all the myriad other things that might occur on a Windows 7 desktop in an office environment, how could I possibly know that a user is idled out, and not just reading a PDF? Do I use a set of metrics to sample at regular intervals and use that to determine "away" or do I need to