Is there a custom URL scheme for the built-in Cont

2019-01-25 19:11发布

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?

3条回答
我欲成王,谁敢阻挡
2楼-- · 2019-01-25 19:54

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.

查看更多
放我归山
3楼-- · 2019-01-25 20:06

No,Not possible to open Default contact application as URL scheme is not available

查看更多
趁早两清
4楼-- · 2019-01-25 20:09

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.
查看更多
登录 后发表回答