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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:45:56+00:00 2026-05-12T13:45:56+00:00

I have an iPhone application that needs to be updated as soon as a

  • 0

I have an iPhone application that needs to be updated as soon as a change is made to the server. How can I have the server “push” data to the iphone rather than the iphone constantly polling the web service?

EDIT: I want th iPhone to receive JSON updates as soon as the server processes them, without having to request.

I suppose since the server is a web service that this is called Comet, but I haven’t seen a good iPhone example yet.

  • 1 1 Answer
  • 1 View
  • 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-12T13:45:56+00:00Added an answer on May 12, 2026 at 1:45 pm

    That depends on how adventurous you are. There are two alternatives here:

    1. Apple’s Push Notifications that will work even when your app isn’t running.
    2. Maintain TCP connection with your server yourself. Which requires more programming effort from you – low-level NSStream juggling and trying to handle cases when iPhone decides to go from 3G to WiFi. This can also eat up the battery pretty quickly. If you choose this path, socket streams programming guide can be the good place to start from.

    UPDATE: Take a look at iStreamLight – Lightstreamer protocol implementation for iPhone. If it doesn’t fit your Comet web-service, you probably need to go down to the lower level, which is maintaining TCP connection using socket streams. To simplify your task in handling JSON data structures, you might want to use JSON framework for Objective-C.

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

Sidebar

Related Questions

I have an iPhone application that uses a sqlite3 database for saving data and
I am writing an iPhone application that needs to send and receive data over
In my iPhone application, I have a secondary thread that I have made for
I am new to iphone application development. I have a sample application that needs
I have an iPhone application that adds new contacts via the Address Book Framework.
I have an iPhone application that reads RSS feeds from a YouTube channel. However,
I have an iPhone application that send datas via wifi on my mac. I
I have a simple iPhone application that is very similar to the Page Control
So I have an iPhone application running that is controlled at the highest level
I have a desktop application that will 'sync' with an iPhone application. The sync

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.