WP8联系商店启动应用程序

时间:2013-10-21 06:53:00

标签: c# windows-phone-8 visual-studio-2013 url-scheme contact-list

我使用自定义联系人存储来保存Windows Phone 8 App上的联系人,

通过调用

已经尝试过我的Url方案正在运行
Windows.System.Launcher.LaunchUriAsync(new Uri("myurlscheme:PageToEditContact?ContactId=0001", UriKind.Absolute)); 

从另一个应用程序,目标应用程序可以启动到正确的页面。

现在正在寻找从原生联系人查看器启动我的应用程序的方法。 但是,当我们将网址保存到联系人时(如下);它只打开IE并导致“不支持的地址”错误消息(IE仅将URL视为HTTP / HTTPS URL,而不是像iOS Safari那样检查自定义URL方案列表。)

ContactInformation ci = new ContactInformation();
IDictionary<string, object> _knownProperties = await ci.GetPropertiesAsync();
_knownProperties[KnownContactProperties.Url] = "myurlscheme:PageToEditContact?ContactId=0001";
StoredContact _storedContact = new StoredContact(_store,ci);
await _storedContact.SaveAsync();

任何人都可以提供一些关于如何从WP8联系人列表启动应用程序的提示? (不需要WP7后向支持)

1 个答案:

答案 0 :(得分:0)

Afaik它还不可能。我们无法从人员中心启动应用程序。

Windows Phone 8 Custom Contact Store & Extended Properties