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 7587469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:40:58+00:00 2026-05-30T19:40:58+00:00

I m using sendSynchronousRequest to get the data from the server. I know that

  • 0

I m using sendSynchronousRequest to get the data from the server. I know that synchronous will wait until the data received for that request.

But the problem comes when user by mistake enters some non-existing url and than tries to get response. In this case, if user goes in to background and than comes into foreground it shows only black screen. It only shows status bar. Also its not showing any background application. I have to press Home button to come out of my application.

On simulator, After 1+ minute it shows me the message that “Request time out” (No crash).

On Device, within 1 min application get crashes.

Any suggestion. Any Help. This is really a serious issue in my app.

Thanks.

  • 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-05-30T19:40:59+00:00Added an answer on May 30, 2026 at 7:40 pm

    Just like Julien said, the watchdog is killing your app. To answer some questions:

    • why does this happen only on the simulator?
      Because when you’re debugging the watchdog leaves your app alone, it can take time.
    • why does this happen only when the user enters a wrong url?
      Because of the system timeout, the system will keep trying for 60 secs if it can’t find a server.
    • so the problem is synchronous vs asynchronous?
      No, the problem is the thread, you can do the same operation in a background thread, just don’t do it on the main thread and the watchdog will leave you alone.
    • why is the screen black when the app comes up?
      Remember, you are making blocking stuff on the main thread, the thread that draws…

    Hope that was all. Let me know if I missed something.

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

Sidebar

Related Questions

I am using iPhone to get data from my web service. Because I wan't
Im using the standard: [NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error]; method, but while the request is
I am using Synchronous request and passing the credentials but I am getting authentication
Hey I am using a NSURL Connection to receive data. [NSURLConnection sendSynchronousRequest: //create request
I was trying to parse response data from web server. I am using Xcode
I am downloading images using the NSURLConnection sendSynchronousRequest method and that works fine. However,
I Have a Class that needs to make an HTTP request to a server
I wanted a quick and easy way to get data from a URL without
I'm trying to parse an NSString that contains JSON data into an NSDictionary using
We are developing an iOS Application that connects to a server over https using

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.