Wednesday 21 October 2015

XMPP Integration Using iOS SDKS

If you want to add chat functionality in your iOS app . Then this blog can help you to do some basic chat functionality. Such as creating xmpp session , login on sever, creating room, getting list of login buddies and chatting.
First step download the XMPP framework from the following link :
https://github.com/robbiehanson/XMPPFramework
call this function to start and setup xmpp stream
 
  1. -(void)startXMPP:(id)viewController{
  2. [DDLog addLogger:[DDTTYLogger sharedInstance]];

  3. // Setup the XMPP stream
  4. NSLog(@"XMPP new method called");
  5. self.delegate=viewController;
  6. [self setupStream];
  7. if (![self connect])
  8. {
  9. dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.0 * NSEC_PER_SEC);
  10. dispatch_after(popTime, dispatch_get_main_queue(), ^(void){

  11. });
  12. }

  13. }
- Read the full Blog at : XMPP Integration Using iOS SDKS
Our Java developer forum forum is developed for those tech geeks who don’t want to wait for a longer duration of time, as the community members within FindNerd can answer any android query within shortest possible time frame.
Apart from this, If you have any language query like C, Java, JavaScript, iOS, Html, PHP etc . you can post at FindNerd’s  Php questions and answers forum.

No comments:

Post a Comment