iOS - Can an app running in the background send to

2019-01-26 02:08发布

问题:

I have been asked to develop an app that will record and later "play back" touches and gestures onto another app running in the foreground.

From my experience and knowledge, this is not possible unless both apps are setup to send/receive data between them through notifications or other methods. Also, it would be a huge risk for apps and their data to be exposed to anybody.

I am 99% sure this is not possible, but was just curious if anyone else has come across something similar (or documentation that specifically states this is forbidden).

回答1:

Nope not possible, no way no how, dont even try.

Expanded answer, if this runs on a jailbroken phone.......

Yes.... but good luck,

check Saurik's Veency code for this sort of functionality, it would have to be refactored signifcantly but basically it allows for virtualization of taps.

https://github.com/iceNuts/TouchTest

http://gitweb.saurik.com/veency.git



回答2:

if you want to access another application in your iPhone ,you can set the url scheme parameter and so on.You can add callback in your url,then you can return back your application.