Self updating vcard

Rated 4.99/5 based on 529 customer reviews

Finally, I compared the exported v Card files and the sample v Card file among each other. In the following, I show these v Card files and discuss the properties which are not interoperable.Note that I stripped the irrelevant properties and rearranged the remaining properties in order to make the comparison easier.BEGIN: VCARD VERSION:4.0 N: Bloggs; Joe;;; FN: Joe Bloggs EMAIL; TYPE=home; PREF=1:[email protected]; TYPE="cell,home"; PREF=1:tel: 44 20 1234 5678 ADR; TYPE=home; PREF=1:;;1 Trafalgar Square; London;; WC2N; United Kingdom URL; TYPE=home; PREF=1: TYPE=home; PREF=1:skype:joe.bloggs X-SOCIALPROFILE; TYPE=home; PREF=1:twitter:https://twitter.com/joebloggs END: VCARD The specification of the v Card is kind of shocking.

Fourth, I created a sample v Card file based on the v Card format 4.0.

Here is my update: from my test I conclude that there should be an issue when the serve should handle NSArrays.

I also tried to send a custom XML, here is the example, I don't know how to send an array so I converted it to string: NSLog(@"TEST FOR VCARD"); NSXMLElement *v Card XML = [NSXMLElement element With Name:@"v Card" xmlns:@"vcard-temp"]; NSXMLElement *nickname Element = [NSXMLElement element With Name:@"nickname" string Value:@"A0Test1"]; NSArray *my Test Array = [NSArray array With Objects:@"IT",@"PC", nil]; NSXMLElement *nickname Element2 = [NSXMLElement element With Name:@"interests" string Value:[NSString string With Format:@"%@", my Test Array; [v Card XML add Child:nickname Element]; [v Card XML add Child:nickname Element2]; XMPPv Card Temp *newv Card Temp = [XMPPv Card Temp v Card Temp From Element:v Card XML]; [xmppv Card Temp Module update Myv Card Temp:newv Card Temp]; My question remains now, how to check if it reached the server, is there any delegate method called by xmpp framework when the v Card transfer is completed like in stream case? UPDATE 3 - Need help in uploading the v Card: So after succeeding in uploading my v Card I tried to implement the fetch v Card, so I replaced the upload code with the fetch code in the xmpp Stream Did Authenticate:delegate method and also in my .h file added the delegate XMPPv Card Temp Module Delegate.

The mappings are fairly straightforward (a future version of this document might provide more detailed narrative descriptions of the mappings).

The following properties are defined similarly in vcard-temp, v Card3, and v Card4.

||

Fourth, I created a sample v Card file based on the v Card format 4.0.Here is my update: from my test I conclude that there should be an issue when the serve should handle NSArrays.I also tried to send a custom XML, here is the example, I don't know how to send an array so I converted it to string: NSLog(@"TEST FOR VCARD"); NSXMLElement *v Card XML = [NSXMLElement element With Name:@"v Card" xmlns:@"vcard-temp"]; NSXMLElement *nickname Element = [NSXMLElement element With Name:@"nickname" string Value:@"A0Test1"]; NSArray *my Test Array = [NSArray array With Objects:@"IT",@"PC", nil]; NSXMLElement *nickname Element2 = [NSXMLElement element With Name:@"interests" string Value:[NSString string With Format:@"%@", my Test Array]]; [v Card XML add Child:nickname Element]; [v Card XML add Child:nickname Element2]; XMPPv Card Temp *newv Card Temp = [XMPPv Card Temp v Card Temp From Element:v Card XML]; [xmppv Card Temp Module update Myv Card Temp:newv Card Temp]; My question remains now, how to check if it reached the server, is there any delegate method called by xmpp framework when the v Card transfer is completed like in stream case? UPDATE 3 - Need help in uploading the v Card: So after succeeding in uploading my v Card I tried to implement the fetch v Card, so I replaced the upload code with the fetch code in the xmpp Stream Did Authenticate:delegate method and also in my .h file added the delegate XMPPv Card Temp Module Delegate. The mappings are fairly straightforward (a future version of this document might provide more detailed narrative descriptions of the mappings). The following properties are defined similarly in vcard-temp, v Card3, and v Card4.

]]

Leave a Reply