iOS - Can an app running in the background send touch / gesture events to another app in the foreground?

ⅰ亾dé卋堺 提交于 2019-11-28 02:12:52

问题


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.



来源:https://stackoverflow.com/questions/15400835/ios-can-an-app-running-in-the-background-send-touch-gesture-events-to-anothe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!