-3

I'm a beginner of iOS app development, I'm working on a very small project to show useful info of another app i simply want it to check the out/ingoing packets through my device and find a specific packet where its string contains a specific word, if found then show the whole packet content,

is it possible to be done and does apple allow tracking packets ? thanks in advance

osx
  • 27
  • 1
  • 2
  • 4
  • http://stackoverflow.com/questions/437061/how-do-you-monitor-network-traffic-on-the-iphone – magma Feb 28 '12 at 13:28
  • It sound likes a sniffer. Maybe it can be done with libpcap, but you need the root to access related device: http://stackoverflow.com/questions/3071034/can-libpcap-be-compiled-for-iphone-armv6 – qrtt1 Feb 28 '12 at 13:30
  • yes i already seen the packet itself but i want to do this process on a separated app, device is already jailbr0ken, i have the root access, wireshark shows loads of packets and complex method to see them that also needs processes to be done before sniffering packets so i think tweak/app is a good solution – osx Feb 28 '12 at 13:35
  • https://www.youtube.com/watch?v=M3ruWy4dLJ4 Best tutorial for beginners – A_Curious_developer Sep 27 '20 at 20:20

1 Answers1

3

Regardless of it being possible or not (I'm guessing the answer is no, since you probably need root access and more low level APIs that aren't available by default), you want to track other applications. More specifically the network activity of these applications. This imposes several 'difficulties';

  • Given their policies, Apple will not allow this.
  • Your application will need to be active on the foreground, while background activity of applications is limited. The number of packets you will be able to 'sniff' will be very minimal and if you chose to put your application in the background instead your time will be limited to about 10 minutes of execution time.

My advice? Don't. Unless you are interested in the jailbreak 'market'.

Jake
  • 3,973
  • 24
  • 36
  • I dont know about its jailbreak requirement but I'm sure you can keep your application live in background-just register your application as Navigator app or voip application.so that you can sniff packets continuously. – virata Jan 02 '13 at 08:14