Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-13-2010, 03:10 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 1
cameloid is on a distinguished road
Default IM application: persistent socket connection and multitasking

Hi,

recently we tried to post an updated version of our application to App Store, but it was rejected since because it did not provide any Voice over IP services but used the VoIP background mode.

Our architecture requires a persistent socket connection between client and server to reflect online presense status correctly. Thus, client or server (as negotiated during "handshake" process) should send "keepalive" messages (pings) from time to time, and the other side needs to respond on those messages. Otherwise, timeout occurs and server sets an offline status for the particular user. The main idea of multitasking support was to keep IM client online even if other application went foreground.

We figured out that the only method to support our "keepalive" scheme (quite usual for IM applications) was to use "VoIP" background mode of iOS 4. In al other cases available, when the application goes background, iOS "freezes" all of its sockets, so the application cannont send any "pings" or respond on them.

Is there any better way to keep a persistent socket connection "alive"?
cameloid is offline   Reply With Quote
Old 01-26-2011, 11:45 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 1
grahamgarvey is on a distinguished road
Default any luck?

Hi cameloid,

Did you ever figure out a way to get through the App store submission short of adding VOIP to your IM client? I need to support some sort of background push that would require an listening socket on the handset as well but don't plan any voip.

Thanks,
G
grahamgarvey is offline   Reply With Quote
Old 01-26-2011, 07:03 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 20
ossama is on a distinguished road
Default

Yeah I would like to do the same, anybody, help
ossama is offline   Reply With Quote
Old 11-21-2011, 11:01 AM   #4 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: San Diego, CA
Posts: 406
jtara is on a distinguished road
Default

Quote:
Originally Posted by ossama View Post
Yeah I would like to do the same, anybody, help
I think the previous poster had the right idea. Add voice capability.

Otherwise, you should still be able to use a background completion task, and that will give you 10 minutes. After 10 minutes with no activity (or at least no activity that the user cares about - i.e. you gave user a notification that they ignored) it seems reasonable that the app should be resigned and you switch over to sending push notifications for any activity.

How did this wind-up? Has anybody successfully gotten an IM app through the app store that monitors in background?
jtara is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 371
7 members and 364 guests
apatsufas, Kirkout, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:42 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0