简体   繁体   中英

Universal links for Windows phone app

I am using ionic to develop my application and need a feature in which " an URL when clicked should detect whether app. is present or not-- If not re-direct to browser web page.". I am able to achieve this for Android and iOS with the help of cordova plugin. This plugin does not support Windows phone. How to do this for Windows phone ?

If I understood you correctly, you are talking about URI associations for Windows Phone 8 .

Shortly, you should create specific URI (calling protocol) for the target/wanted application, and call Launcher.LaunchUriAsync(target_app_URI); If this app already installed, it will be launched and get your parameters (specified in launching URI), if not, WP will open "Store" app and will locate and show target application.

So, to achieve your needs, do the following:

  • create your WP app with URI scheme support (ie your own "protocol"), by following MS recommendation from the link above
  • publish your app on Windows store
  • add link to your app to html code (here is launch page sample for my app "SilverDict")
  • tap this link on the phone browser: it will launch the app if installed, or open app page in the store

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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