Question

I was using Custom Contact Store to save contact on a windows phone 8 App,

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).

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? (WP7 backward support is not necessary)

Was it helpful?

Solution

Afaik it's not possible yet. We cannot launch app from people hub.

Windows Phone 8 Custom Contact Store & Extended Properties

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top