简体   繁体   中英

Send vCards with PUSH notifications to iPhone, save them in Address Book

I'm trying to wrap my head around this and see if it is possible to work.

Using the Apple PUSH server notifications, would it be possible to send a vcard, and make the application save it in the address book? If this is not possible, is there an alternative way this could be done?

Thanks!

Well I think you can do this. Just send a push notification and use the userInfo part to tell the app about the VCard. i don't kown if the userInfo can fit an full VCard, but you could all ways send some kind of ID with the push notification and just retrieve it from a server via the ID.

Then use ABPerson to insert the VCard: http://developer.apple.com/library/ios/#documentation/AddressBook/Reference/ABPersonRef_iPhoneOS/Reference/reference.html

I think you will have to parse the VCard your self.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM