Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app to listen to a port all the time [closed]

Tags:

ios

iphone

I want to create an app that listen to a custom port all the time & when the client try to connect through that port I want to handle that event.

I searched a lot in the internet about it but I couldn't get any good resources for my requirement.

I want to know if I build that app somehow, will Apple Store approve my app? because the app always listen to a port. They might think it's a security issue.

Can anyone give me an answer to that question, as well as please provide me relevant resources for that.

Thanks

like image 790
DilumN Avatar asked Dec 01 '25 10:12

DilumN


1 Answers

Apple has some examples, both with Core Foundation and POSIX sockets in the network programming guide - but there is still a lot of work to be done beyond the code provided.

Because the use cases for mobile devices are typically client-style rather than server-style there isn't the same degree of development and examples available.

If the "other end" of your connection is also iOS, perhaps the multi peer connectivity framework could be an option.

like image 181
Paulw11 Avatar answered Dec 03 '25 22:12

Paulw11