Tracking gestures

For research purposes, we are developing an app/widget to track in the background the touch gestures that are made using the phone, regardless of the application. It is possible to do it? We were looking for ways to do it but we only found ways to track the gestures only inside an app.

Answered by mariacv in 737032022

Sorry if I do not explain me well, but this application is for a research project, the purpose is to be able to do a study with people who ACCEPT and give their CONSENT to participate. At no time will we track personal information, it is simply to see their behavior while using the iphone

No. You aren't able to do that, and for a good reason - privacy.

If I installed your app and found it was tracking everything I did I'd be exceptionally annoyed, and your reputation would be in the gutter.

Accepted Answer

Sorry if I do not explain me well, but this application is for a research project, the purpose is to be able to do a study with people who ACCEPT and give their CONSENT to participate. At no time will we track personal information, it is simply to see their behavior while using the iphone

Anyway, in addition what @darkpaw said:

  • apps in background cannot run long tasks : https://developer.apple.com/documentation/backgroundtasks
  • the principle of sandboxing makes an app unable to monitor what other apps are doing (unless those apps decide to publish information, which is not the case here).
  • apps can only see some system events (like getting a GPS position).
Tracking gestures
 
 
Q