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

  • SEARCH
  • Home
  • 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 6010093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:04:02+00:00 2026-05-23T02:04:02+00:00

Things like presence notification needed for IM that messenger apps have. Kik does this

  • 0

Things like presence notification needed for IM that messenger apps have. Kik does this especially well and managed to improve the texting experience many-fold.

If this were a web application, we would probably do a comet implementation and run an event loop server to handle the connections and keep either a flash/web socket or long polling connection open on the client (Socket.IO ftw).

I’m not too sure about iPhone, with the connections over 3g+wifi and all:
– maybe NSURLRequest handles all that stuff for you and it’s as simple as keeping a long running long polling connection on a background thread and register notifications onto it?

Anyways, would appreciate some pointers from anybody who’s implemented something realtime on the iPhone.

  • 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-23T02:04:02+00:00Added an answer on May 23, 2026 at 2:04 am

    Well I’ll just respond now for other peoples’ reference:

    You can use Node.js with Socket.io basically, and implement long polling on the iPhone. There’s a library somewhere IIRC, but it’s relatively simple just to implement yourself:

    • Implement a state machine of sorts on the phone to switch between open request and getting back data, fire off another request.
    • Implement a heartbeat (you don’t want to hit the HTTP timeout anyways) of like 5 seconds, read the socket.io github page for more info on the protocol so you can interface with Node.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We already have things like static analysis that tells us what's wrong with our
I have a class that looks like this: class SearchService include Mongoid::Document key :name,
I am looking for things like reordering of code that could even break the
How would you integrate things like this in a RESTful design? Marking an email
I tried things like $_ENV['CLIENTNAME'] == 'Console' but that seems to work on only
I mean things like: FK1 -> 1FK2 -> 2PK Please, note that 1FK2 is
I often see things like this in rails views: <% form_tag some_path do -%>
Sometimes things like this happen: #0 /some/path(1): Class_Name->exception_trigger() #1 /some/other/path(5): get_to('/some/long/path/tha...') How do I
I have a couple of simple models that are associated like so: MODELS class
I have a user model that has many fields (let's say 30 for this

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.