I'm working on an IM application using XMPPFramework. When I want to add a friend, I send a presence stanza, and the friend would be automatically added to XMPPRoster before&whether the other side accepts or rejects. I don't know why. Does any one know? Thanks in advance.
The stanza is like this:
<presence to='juliet#example.com' type='subscribe'/>
After reading the source code and other material. I found that the roster here does not exactly mean what it is in Wechat (a Chinese IM app) or MSN. So those who in your roster does not need to be your friends but the ones who you want to subscribe.
Related
Is there any option to change my jId (ejabberd ID) using XMPP Framework iOS?
suppose currently my jID is 12345#localhost. I want to change it to 6789#localhost.
Its like change phone number feature in WhatsApp.
Can anybody help me please. which class or method to change it. Thank you!
The short answer is no.
A JID is the unique identifier of an entity in an XMPP system. Changing a JID would imply changing all the persistent data (own roster, buddies' rosters, temporarily stored offline messages, past chat history, group chat room membership, ...). I don't know of an XMPP server having this functionality built-in and as far as I can tell there's no XMPP extension defining such a feature.
I want to send individual invite to friends from my Native iOS app, through Facebook. It should contain Link and pre-filled invite message..Is it possible? What is the better approach. I referred FBAppInvite and FBSDKMessageDialog tutorial on https://developers.facebook.com/ , could not find anything which fulfils my requirement.
Can any one suggest some approach how to implement this?. I have not worked much on using social frameworks. Facebook implementation steps are not clear. I searched for demo or sample project on this, but could not find clear documents. Thanks in advance.
for invitation read following link..
https://developers.facebook.com/docs/app-invites/ios
I am building an iOS chat application using the XMPPframework. I have been able to register, send invites, accept invitation and chat. However when I try to populate my buddy list using the Roster, I get the names of all the buddies whom I have already added as well as whom I have sent Friend request. I am not able to differentiate between them. I have tried to dig into the XMPPRosterMemoryStorage class but all the methods are returning the same list (sorted/unsorted).
How to show an invited buddy as pending if he has not accepted the invitation yet.
Please help.
Thanks.
Answering my question. Looks like i didn't dig deep enough in XMPPRosterMemoryStorage class. All the jid's along with other details like subscription & ask attributes are received in Roster. However the methods sorted/unsorted were returning only the jid's of all the users. I went back and customized the XMPPRosterMemoryStorage class to return only jid's which have been accepted by both users.
I am trying to attach a .vcf file to the MFMessageComposeViewController as a share contact feature in my app.
I referred this link and it is said that there is no possibility to send a contact info through message composer. I also tried setting the encoded string to the message body as suggested in this link, which also didn't work. I don't know how it is implemented in the default message app as in the below image.
Can anyone suggest me how to implement this share contact option as in the default Contacts app of the iPhone? Any timely help is much more appreciated.
Adding attachment feature is added in iOS7 with the MFMessageComposeViewController class.
The method – addAttachmentData:typeIdentifier:filename: gives the answer where typeIdentifier can be set as kUTTypeVCard.
I am pretty new with iOS 5 and I am thinking in writing an app.
I would have a list of people inside the app who has it. Then I would invite them to an event.
I don't need any code right now I just wanted to know the concept behind this.
First, how an app can recognise who has my it installed, so it can show a list of people.
Second, after creating an event with a group of people how can I send an invitation to them.
Thanks
From a very general standpoint, what you need is a back-end server to interact with your app and store user/event info. You can either build your own or try to use a service like Parse.