简体   繁体   English

WP8联系商店启动应用程序

[英]WP8 Contact Store Launch App

I was using Custom Contact Store to save contact on a windows phone 8 App, 我使用自定义联系人存储将联系人保存在Windows Phone 8应用中,

already tried that my Url scheme is working, by calling 已经通过调用来尝试我的网址方案正在工作

Windows.System.Launcher.LaunchUriAsync(new Uri("myurlscheme:PageToEditContact?ContactId=0001", UriKind.Absolute)); 

from another App, the target app can be launched to the correct page. 从另一个应用程序中,可以将目标应用程序启动到正确的页面。

now looking for ways to launch my app from the native contact viewer. 现在正在寻找从本机联系人查看器启动我的应用程序的方法。 however, when we save the url to a contact ( as follow ); 但是,当我们将网址保存到联系人时(如下所示); it only open IE and result in "Unsupported address" error message (IE only treat URL as HTTP/HTTPS URL, not check against the custom URL scheme list like iOS Safari). 它只会打开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();

anyone have can give some hint on how to launch an app from WP8 contact list? 任何人都可以给出一些关于如何从WP8联系人列表中启动应用程序的提示? (WP7 backward support is not necessary) (不需要WP7向后支持)

Afaik it's not possible yet. Afaik还不可能。 We cannot launch app from people hub. 我们无法从人脉中心启动应用程序。

Windows Phone 8 Custom Contact Store & Extended Properties Windows Phone 8自定义联系人存储和扩展属性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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