Open Windows Phone 7 App from URL

2020-02-26 07:40发布

问题:

I need to launch my WP7 application from the phone's browser and pass some arguments. For example, the following url would be a link on an html page. Clicking the link would start my application. iPhone and Android both have these capabilites by the name of 'url schemes'.

appName://my.arguments.here

How can I accomplish this on WP7?

Thanks!

回答1:

Unfortunately there is currently no support for "url schemes" or custom URL handlers that will allow you to handle these requests from within your application.



回答2:

It is possible to integrate with the search application, which can provide deep linking into your application. It also appears that YouTube has some kind of way of doing it, as the mobile version of their site will jump to the app for playback of videos.



回答3:

You should use the protocol activation feature of Windows Store apps - see http://msdn.microsoft.com/en-us/library/windows/apps/hh452686.aspx