Abhinav Singh
Abhinav Singh

Reputation: 8100

In iOS how to get Global touch event notification in background running state?

I am looking for a way to get notified about any user initiated touch event while my app is in background running state, I want to make it clear I don't want to handle gesture events or break UIResponder chain, some form of notification that user initiated a touch somewhere on the screen?

Upvotes: 0

Views: 1235

Answers (2)

gagan sharma
gagan sharma

Reputation: 254

Not allowed. If an App is in the background it is only allowed to do few certain operations:-

  • Play music
  • Informing of their location at all times
  • Internet Protocol(VoIP)
  • Updates from external accessories

Must read section "App States and Multitasking" from Apple 's link below

http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html

"It will surely give you strong Foundation "

Upvotes: 1

Mike Weller
Mike Weller

Reputation: 45598

This isn't possible at all using the standard SDK. You would be able to record where the user is tapping in other applications and record what they are typing on the keyboard. This just isn't allowed. Only touches sent to your app can be intercepted and handled.

Upvotes: 1

Related Questions