Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:51:22+00:00 2026-06-11T19:51:22+00:00

The app I am working on involves any 2 iOS devices communicating with each

  • 0

The app I am working on involves any 2 iOS devices communicating with each other for extended period until the user wishes to end it (roughly comparable to VoIP). I am having a very hard time maintaining the connection between 2 devices as eventually one of devices will lose wifi intermittently.
The app uses UDP socket to communicate.

The list of things I have tried and checked but not working include:

  • Application uses wifi key is set to YES
  • Using Reachability APIs to detect wifi loss to restart later when wifi is regained – this is not working for me as the app is sent to background once wifi is lost and there is no more audio playing

I am now wondering how other such apps manage to maintain the connectivity, especially the ones that might require running overnight.

Any help greatly appreciated. I am up against the wall with this issue.

Thanks!

Here is a excerpt of console log that may be relevant:

Aug 28 23:12:10 unknown wifid[13] <Error>: WiFi:[367913530.830882]: Processing link event DOWN

Aug 28 23:12:11 unknown kernel[0] <Debug>: Removing any beacons matching:    @ 0xc140a400, BSSID = 90:84:0d:dc:46:53, rssi = -64, rate = 54 (100%), channel = 10, encryption = 0x8, ap = 1, failures =   0, age = 7529, ssid[12] = "Studio"

Aug 28 23:12:11 unknown kernel[0] <Debug>: Also removing matching beacon:    @ 0xc140a400, BSSID = 90:84:0d:dc:46:53, rssi = -64, rate = 54 (100%), channel = 10, encryption = 0x8, ap = 1, failures =   0, age = 7529, ssid[12] = "Studio"

Aug 28 23:12:11 unknown kernel[0] <Debug>: AppleBCMWLAN Left BSS:       @ 0xc140a400, BSSID = 90:84:0d:dc:46:53, rssi = -64, rate = 54 (100%), channel = 10, encryption = 0x8, ap = 1, failures =   0, age = 7529, ssid[12] = "Studio"

Aug 28 23:12:11 unknown kernel[0] <Debug>: AirPort: Link Down on en0. Reason 1 (Unspecified).

Aug 28 23:12:12 unknown configd[45] <Notice>: network configuration changed.

Aug 28 23:12:12 unknown UserEventAgent[12] <Warning>: DEBUG: Changing WiFi state: 0

Aug 28 23:12:12 unknown CommCenter[57] <Notice>: Client [com.apple.persistentconnection[apsd,50]] is telling PDP context 0 to go active.

Aug 28 23:12:12 unknown CommCenter[57] <Notice>: No more assertions for PDP context 0.  Returning it back to normal.

Aug 28 23:12:12 unknown CommCenter[57] <Notice>: Scheduling PDP tear down timer for (367913832.324872) (current time == 367913532.324882)

Aug 28 23:12:13 unknown mDNSResponder[34] <Error>: mDNS_Execute: SendResponses didn't send all its responses; will try again in one second

Aug 28 23:12:14 unknown wifid[13] <Error>: WiFi:[367913534.115957]: Processing link event UP

Aug 28 23:12:14 unknown kernel[0] <Debug>: AppleBCMWLANCore::setASSOCIATE() [wifid]:  lowerAuth = AUTHTYPE_OPEN, upperAuth = AUTHTYPE_WPA2_PSK, key = CIPHER_PMK , don't disassociate    .

Aug 28 23:12:14 unknown kernel[0] <Debug>: [31834.320185375]: AppleBCMWLANNetManager::prepareToBringUpLink(): Delaying powersave entry in order to get an IP address

Aug 28 23:12:14 unknown kernel[0] <Debug>: AppleBCMWLAN Joined BSS:     @ 0xc22d4400, BSSID = 90:84:0d:dc:46:53, rssi = -67, rate = 54 (100%), channel = 10, encryption = 0x8, ap = 1, failures =   0, age = 1, ssid[12] = "Studio"

Aug 28 23:12:14 unknown kernel[0] <Debug>: AirPort: Link Up on en0

Aug 28 23:12:14 unknown kernel[0] <Debug>: en0: BSSID changed to 90:84:0d:dc:46:53

Aug 28 23:12:14 unknown kernel[0] <Debug>: AppleBCMWLANJoinManager::handleSupplicantEvent(): status = 6, reason = 0, flags = 0x0, authtype = 0, addr = 90:84:0d:dc:46:53

Aug 28 23:12:14 unknown mDNSResponder[34] <Error>: mDNS_Execute: SendResponses didn't send all its responses; will try again in one second

Aug 28 23:12:15 unknown configd[45] <Notice>: Captive: en0: Not probing 'Studio' (protected network)

Aug 28 23:12:15 unknown kernel[0] <Debug>: [31835.475445625]: AppleBCMWLANNetManager::receivedIPv4Address(): Received address 10.0.1.3, entering powersave mode 2

Aug 28 23:12:15 unknown configd[45] <Notice>: network configuration changed.

Aug 28 23:12:15 unknown configd[45] <Notice>: network configuration changed.

Aug 28 23:12:15 unknown UserEventAgent[12] <Warning>: DEBUG: Changing WiFi state: 1


Message was edited by studiosutara on 8/31/12 at 12:21 PM
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:51:23+00:00Added an answer on June 11, 2026 at 7:51 pm

    Turns out the problem was indeed that the OS would kick in(more often in the night) and turn off the wifi to save battery. The data was being forced through the WWAN interface(this I was able to deduce from the Reachability APIs).

    “Connected” UDP sockets were the answer. Since I am using CocoaAsyncSockets, I had to make the following call on the socket:

     [senderSocketName connectToHost:mPeerName onPort:[self getSocketPort] error:&socketError];
    

    This seems to have solved the issue. The app now runs consistently without dropping wifi connectivity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Part of the app I'm working on involves a UIPageViewController, where each page displays
I'm working on an app that involves having the user record audio. I'm using
I have my php app working fine, performing some other Graph API functions. However,
Up until yesterday I had a perfectly working app on my iPhone. I made
I'm working on an app that involves a lot of carefully designed strings. I'm
I'm working on a web app in ASP.NET 2.0 that involves serving images via
I am working on an iPhone app which involves using json-framework.I am getting array
I'm working on an app that involved comparing to numbers inputted by the user
I'm working on a project that involves a native iOS client as well as
I'm working on an augmented reality app for iPhone that involves a very processor-intensive

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.