iphone - iOS Chat Messaging App - Send/Receive Message & Notifications -


i building application chatting. chatting app, messages got real quick. web services ready , web service sends message notification , got act accordingly on application. api sends notifications & android version uses gcm achieve same. socket io used developing server side.

my concerns :- can use apns notifications. usage of apns reliable such application.

on many sites have read - apns sending notifications & not direct messaging & many other factors of it. on many sites/comments read if fast & reliable, developers have used in messaging systems.

can please me know facts - appropriate chatting application ? other alternative or better solutions. when more people chatting, affect apns or so..

new api's designed based on needs - not stuck using single pattern.
need guidance decide opt right technology use. highly appreciated.

thanks

apns not reliable doc says. can suggest use socket connection chat purposes. i've implement in last application , works well. i've used cfnetwork api persistent connections:

cfreadstreamref readstream; cfwritestreamref writestream; cfstreamcreatepairwithsockettohost(null, (__bridge cfstringref)kserverip, kserverport,     &readstream, &writestream); self.inputstream = (__bridge nsinputstream *)readstream; self.outputstream = (__bridge nsoutputstream *)writestream;  //add streams run loop [self.inputstream scheduleinrunloop:[nsrunloop currentrunloop] formode:nsdefaultrunloopmode]; [self.outputstream scheduleinrunloop:[nsrunloop currentrunloop] formode:nsdefaultrunloopmode]; [self.inputstream open]; [self.outputstream open];  //then handle nsstream delegates in/out messages 

...and can use apns notify user while in lock screen.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -