How do I get a deep link of my application programmatically from the Windows Phone Marketplace, so that I can use it in my code?
标签:
windows-phone
相关问题
- Save pictures to custom folder in media library
- wp7 player freezes if html5 <video> and isol
- TimeSpan string format in Windows Phone XAML
- Windows Phone 8 page lifecycle
- How to get Wi-Fi and mobile network parameters in
相关文章
- How to Play youtube videos in windows phone 7?
- Custom Panel with Reorder and animations / transit
- Windows Phone Phonecall with dtmf
- Unable to load DLL 'sqlite3' - for Windows
- Read and write list to IsolatedStorage in Windows
- WP7 Emulator Browser not displaying anything
- How to set ItemsSource property programmatically?
- How to detect if background music is playing in WP
Getting the AppDeeplink is quite useful for example in ShareStatusTask and ShareLinkTask.
It is possible, however you have to use some non-trivial code for getting the real AppID from within your app Manifest file. Here's what I do:
First save somewhere in resources the string for Windows Phone app deeplinks, this is simple:
Then you have to find the real AppId by opening the App Manifest file and finding the proper tag, I use this code inside my MarketplaceHelper for doing so:
If the Manifest is there and is properly formatted, and it should be, otherwise the app won't work, you can get this way any data you want.
Now you can construct the deeplink like this: