Re: waking and listening
Re: waking and listening
- Subject: Re: waking and listening
- From: Jens Alfke <email@hidden>
- Date: Fri, 06 Jun 2014 15:09:10 -0700
On Jun 6, 2014, at 10:30 AM, Michael Brian Bentley < email@hidden> wrote: When the app is backgrounded and then foregrounded, the listener usually continues to work. When I sleep/lock the iPad, and then wake and unlock the iPad, when the app foregrounds, the listener often stops listening.
Yeah, the OS doesn’t want you leaving sockets open indefinitely while in the background. You’ll need to close the listener socket when the app is backgrounded, and re-open it when it’s foregrounded.
—Jens |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden