Create VCards with iPhone Address Book Contacts - iphone

I am wondering if there is some way to create and send VCards based upon the iPhone Address Book information from my own app. On the Mac, there is some easy function in the built in app to do this, but I have not seen something on the iPhone like this. So, is there some framework or otherwise that enables me to turn contacts on the iPhone into VCards?
Thanks for any help!

There is a "share contact" button at the bottom of every contact in the contacts app on the phone, press it and you can email a VCard to whoever you want.

Related

Adding vCard to Contacts in iOS 13

we have a web site that allows people to click on a link to a vCard .vcf file to install contact details on their phone. The method for handling this has changed in iOS 13 and it is really confusing people. Previously, the vCard opened in the Contacts app and there was a Save button to add it to contacts. Simple, and people understood it. Now the vCard opens in a preview, but there is no obvious way to save it to their contacts. They have to know to tap the Actions icon, then find the Contacts entry and tap that. Very few people can work that out, instead they just tap the Done button, thinking it has been added. Adding a vCard to your contacts has become too hard for most people to work out.
Does anyone know of a trick whereby we can skip the preview screen and open the vCard directly in the Contacts app?
Gary
Including vCard information within a QR code as plain text (not a linked .vcard file) prompts users to add this information to their contacts app—a simple user experience for both iOS and Android users.
From what I've found, requesting any iOS or Android user to download a .vcard file leads to a confusing user experience which should be avoided.
Not sure how helpful you'd find it to include a QR code on a mobile website, but it's one option you have.
You might try to embed the vcard in an ical element like described in iPhone: how to get safari to recognize a vcard?

How do I open the Contacts app Swift

Is there a URL to open the contacts application from within my application? I know you can achieve this with the settings app by using the UIApplicationOpenSettingsURLString constant in Swift; however, I wasn't sure if I could do the same with the Contacts app.
There isn't a deep link for opening the Contacts App.
Apple is very picky when it comes to deep-linking. They have to provide one for Settings since many apps need services like Data, Location, Bluetooth, Wifi, etc.
Unfortunately they do not extend this to the Contacts App.
However if your app needs contact information then for that Apple has provided a Contacts framework to browse through your contacts within your app itself.
Read more about it here.
In order to add/update/delete/merge contacts directly from your app without using the Apple's Contact UI, use the CNSaveRequest APIs. More on that here.
The closest thing you can get to opening a contact is to write them a message in IMessage. From this screen the user can press the contact icon and open the contact page for that particular contact.
You can do this by opening the url sms://+44776382223 where the number is the number of the person that you would like to view the contact of.

Load contacts to retrieve email address and send email

I am new to iphone world i want to ask a question:
There is a contact button in my IOS app, all what i want to do is when user tap on that button it opens up my phone contacts , i chose any of the email of my friend from that contacts and then i send email to that address..
I want to achieve this functionality.
I have done its vice versa using messageUI framework. At their when you tap on email a + button appears and when you click on it a contact page open you chose the email address from there. I actually want this functionality on my contact button.
When i tap contacts my phone contacts load i select a contact from there and send email to it. I dont know how to do this in iphone.
Have you looked at some apple documentation like this? Also would help if you posted sample code.

Xcode show contact card (contacts app)

I didn't find any solution so far.
I am trying to link to the "Contacts" app from apple.
For example I have a Firstname and a Lastname and maybe a phone number is it than possible to show with this information the matching "contact card" in contacts? So my app should open the Contacts app and show the "contact card" from this person where I have the First- and Lastname in my app. Thanks for help!
NO, there is no URL Scheme top open the contacts app.
You can use the SDK to directly interacte with the contact on the users device.
Have a at the AddressBook API documentation.
You can use AddressBook framework if it suits your need.

Any way to detect who all use iPhones in the phone contact list using iMessage related or some similar logic?

When I send a sms msg to a friend in my phone book which also uses an iPhone, the message goes as iMessage by default.
Using the reverse logic, is it somehow possible to programatically figure out a list of people in my phonebook who use an iPhone?
Actually I have built an iPhone app and I want to provide a feature to let the user share the info about the app with her other iPhone friends if she likes the app. Now since non iPhone friends have no interest with the msg coz they cant use the app, it makes sense to provide the user a list of only iPhone friends whom she can fwd her msg if she wants to. Therefore I want to provide a list of iPhone users from her phonebook only and then let her iMessage them.
How can I achive this?
I read your post several times and can't see a definite question. But I'll try it:
Is it possible to find out, which of my friends are using an iPhone?
Yes and no. If you want to show only persons who downloaded the app, then it's totally possible, but if you want to find this out just by their phone numbers and using official Frameworks it's impossible to reach this.
Is it possible to find out, which of my friends are using iMessage?
No, except they all download your app and enter if they're using iMessage or not.
Again: If you want to get a list of your friends which are using an iPhone, they would need to download your app which collects the data. (It's called WhatsApp)