title: Cordova - Track when apps open and move to background
body: <p>I'm doing a research project looking at app usage, habitual use and addition. I'm programming an app using <strong>HTML5</strong>, <strong>CSS3</strong>, and <strong>jQuery</strong> and need a Cordova plugin that can identify when other apps are being used (i.e. open an app, move to the background, foreground, close an app). All this app needs to do is track how much users open apps and how long they use them.</p>
  
  <p>We will recruit users to willingly participate in this study and only inform our research participants about the data we are tracking and how it's being used. </p>
  
  <p>I know that the app I'm working on needs to be open and running in the background to be able to collect this data and I've already found Cordova plugins to prevent the app from going to sleep. I'm also considering battery usage as well. </p>
  
  <p>There are parental monitoring apps that do this already and collect way more data that we need so I know it's possible. If anybody can point me in the right direction and help I would greatly appreciate it! </p>