Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a custom URL scheme for the built-in Contacts app?

I am trying to write an app that does a person search of my company. When it returns a result, I want to include a feature to add the person to the Contacts app with the push of a button.

The problem is, I can't find a way to launch the Contacts app through a custom URL scheme with the new person info as parameters. Does anyone have any idea if this is possible and if so, how to go about that?

like image 294
gabaum10 Avatar asked Aug 20 '10 14:08

gabaum10


People also ask

What is app URL scheme?

URL Schemes are an advanced configuration option used to define a non-standard link format that will only open in your app and not the device browser e.g. youruniquestring://yoursite.com/path This functionality is helpful in authentication redirect flows or for a more seamless user experience.


2 Answers

If there were a public URL scheme, Apple would have documented it in the URL Scheme Reference.

Your options are:

  1. ABNewPersonViewController or ABUnknownPersonViewController
  2. Direct modification of the address book. (archived link)
like image 194
Ole Begemann Avatar answered Nov 27 '22 03:11

Ole Begemann


There is a URL scheme for the Contacts app on the Mac – the addressbook scheme. You might want to try whether this works on iOS as well.

like image 37
adib Avatar answered Nov 27 '22 03:11

adib