Monday, 15 July 2013

ios7 - ios pubnub messaging system -



ios7 - ios pubnub messaging system -

i using pubnub in ios app , have come accross bump in development process. have setup social network user can register, have own profile, add/remove friends..etc. have been able implement scheme user can chat 1on1 whatever friend take chat friends list using pubnub. of apps friend , user info accessed php/mysql backend retrieved via json. trying implement alert message scheme lets user send message recieved on user's friendslist. alertmessageview contain textfield , button. when user inputs message , presses submit button utilize pubnub messaging scheme send message everyone. there may have thought how can done? possible? lost , need guidance regarding implementation of such functionality. allow me know if there code see. in advance.

idea of functionality (every user able this).

user inputs message user presses submit button json used retrieve list of on user's friends list ??how implement pubnub sending message users on friends list??

the methods of specific involvement are:

https://github.com/pubnub/objective-c/tree/master/ios#publishing-messages (publishing messages)

and

https://github.com/pubnub/objective-c/tree/master/ios#who-is-here-now- (getting list of users)

you should utilize pattern each user listens on own channel (myusername-private), , can subscribe public lobby (public) channel. way, can messages on public , private channels.

public chat traffic received on public channel, , private chat dialog exchanged on private channels.

the demo app located @ https://github.com/pubnub/objective-c/tree/master/ios/ipaddemoapp has pretty illustration of using each of methods looking for.

also, have had chance checkout formal docs , tutorial available @ http://www.pubnub.com/docs/objective-c/ios/ios-sdk.html ? think show how accomplish need in pubnub. there, matter of integrating ios calls it.

geremy

ios ios7 pubnub

No comments:

Post a Comment