xmppframework

XMPPFramework - How can I update my own avatar image?

南笙酒味 提交于 2019-12-29 05:34:28
问题 I am developing an application in that I want to update my avatar image. I am following XEP-0153 guidelines to update my avatar image and I constructed an NSXMLElement correspond to the following code in XEP-0153 and sent that element through XMPPStream . <iq from='juliet@capulet.com' type='set' id='vc1'> <vCard xmlns='vcard-temp'> <PHOTO> <TYPE>image/jpeg</TYPE> <BINVAL> Base64-encoded-avatar-file-here! </BINVAL> </PHOTO> </vCard> </iq> The server responses the following error: <iq xmlns=

How could i add phonebook contacts to my chat app in ios by using xmpp framework and openfire server?

限于喜欢 提交于 2019-12-25 09:23:54
问题 I am new to chat application and making it in objective-c. I wanted to know how could i save all my phonebook contacts as user. i know how to fetch contacts from address book but dont have much idea about xmpp framework and openfire.If anyone could help me. 回答1: First you know how to fetch contacts.now every contact you need to add Xmpp Roaster.like below call this method called at your contact fetching class. [[self appDelegate] addNewBuddyToMyAccount:tempNumber withNickName:[

- (id) from Obj-C Lib in Swift?

前提是你 提交于 2019-12-25 07:28:33
问题 At first, I'm very very bad at Obj-C (don't like the syntax), but now with Swift I love iPhone developing :D Here is my problem, I try to work with a Obj-C Library (xmppframework), but when I try to initialize the XMPPRoster the required Method isn't available... Objective-C usage: xmppRosterStorage = [[XMPPRosterCoreDataStorage alloc] initWithInMemoryStore]; xmppRoster = [[XMPPRoster alloc] initWithRosterStorage:xmppRosterStorage]; But within my Swift Class the Method "initWithRosterStorage"

XMPPFramework - How can I get a list of online and offline friends?

我的未来我决定 提交于 2019-12-25 03:24:19
问题 How can I get a list of online and offline friends using XMPPFramework in iOS? I want to send buddy request to user. So how can I achieve this? Can somebody share some sample codes for me? Thank you. 回答1: By using these methods you will get notified whole a user going to online/ offline, added, removed , updated etc.by using these methods you can update your contact list - (void)xmppRoster:(XMPPRosterMemoryStorage *)sender didAddUser:(XMPPUserMemoryStorageObject *)user - (void)xmppRoster:

iOS - XMPPFramework - creating a group chatroom - Issue

☆樱花仙子☆ 提交于 2019-12-25 02:52:10
问题 I am developing a chat app in iOS. In XMPP server (Ejabberd in this case,I have enabled MUC ). I have registered a user and now trying to create a chatroom using an registered user. Also in MUC, the Host setting is defined properly {host, "conference.@HOST@"} But I am not able to create a chatroom The code I am using is below XMPPRoomCoreDataStorage *rosterstorage = [[XMPPRoomCoreDataStorage alloc] init]; NSString *jid =[[NSUserDefaults standardUserDefaults] valueForKey:@"UserName"]; jid=[jid

Module 'KissXML' not found Error in IOS

那年仲夏 提交于 2019-12-24 06:44:52
问题 I am beginner in IOS development want to make chat app using XMPPFramework . while integrating this library i had got this Error,I am attaching the image of error can any one help me regarding this. 回答1: Try this, just replace your current pod with below one. it will fix your problem. pod 'XMPPFramework', :git => "https://github.com/robbiehanson/XMPPFramework.git", :branch => 'master' 来源: https://stackoverflow.com/questions/41487744/module-kissxml-not-found-error-in-ios

XMPPFramework - Create vCard

对着背影说爱祢 提交于 2019-12-24 06:06:15
问题 I used following code to no avail in creating a vCard. It always goes in if block. Can someone please look into it to see if I am missing anything? xmppvCardStorage = [XMPPvCardCoreDataStorage sharedInstance]; xmppvCardTempModule = [[XMPPvCardTempModule alloc] initWithvCardStorage:xmppvCardStorage]; XMPPvCardTemp *myvCardTemp = [xmppvCardTempModule myvCardTemp]; if (!myvCardTemp) { NSXMLElement *vCardXML = [NSXMLElement elementWithName:@"vCard" xmlns:@"vcard-temp"]; XMPPvCardTemp

Not getting unavailable presence of User A when User B is also unavailable

て烟熏妆下的殇ゞ 提交于 2019-12-23 23:28:06
问题 I am working on a chat application. I am adding functionality to get unavailable status of the user. Following the situation where i am not getting the unavailable presence of the user There are 2 users User A and user B and both are available First User A goes unavailable and User b gets unavailable presence of User A , so its working fine, Then user B goes unavailable and then User A become available here problems occur the User A does not receive offline Unavailable presence of User B. But

Cocoa/Cocoa.h file not found

假如想象 提交于 2019-12-23 08:10:07
问题 I am using XMPPFramework in my application. I have imported the Cocoa/Cocoa.h in my .m file. But when i build the project Xcode shows an error. error: "Cocoa/Cocoa.h file not found". How can i solve this Error? 回答1: If you're building for iOS then you shouldn't #import <Cocoa/Cocoa.h> . That header only exists on OS X. For iOS you need to include the various framework headers directly (e.g., #import <UIKit/UIKit.h> ). 回答2: Add this line : #import <Foundation/Foundation.h> remove this :

Getting “recipient-unavailable(404)” while joining the Group after getting the invitation for Multiuser Chat

 ̄綄美尐妖づ 提交于 2019-12-23 05:32:08
问题 I am Creating Group in android using following code MultiUserChat muc = new MultiUserChat(connection, groupName + "@conference.jabber.org"); setConfig(muc, groupName); muc.create(groupName); muc.join("ABC"); groups.add(groupName); private void setConfig(MultiUserChat multiUserChat, String groupName) { try { Form form = multiUserChat.getConfigurationForm(); Form submitForm = form.createAnswerForm(); for (Iterator<FormField> fields = submitForm.getFields(); fields .hasNext();) { FormField field