简体   繁体   中英

Linking to the app's Store Page on WP7 using XNA

Is it possible for an XNA game/app to obtain it's own store link url through code or would I have to submit an app, wait for it's store link to become available and release an update including the store link?

Basically I want the player to be able to post his or her score to any social networks set up along with a link to the store page.

-Short question I know but my Google-Fu failed me this time.

To get a store URL, you will need to get hold of the app id. This is done by calling GetManifestAttributeValue. Note that the actual app id (Product ID) is generated when the app is published, and is different than the temporary one that is in WMAppManifest.xml. This causes a chicken and egg scenario when it comes to testing this.

See this for detailed instructions: http://code.msdn.microsoft.com/Generating-a-Windows-Phone-9d19f939/

If all you need is to link to store from within your app, then use MarketplaceDetailTask to launch to the store. Leave ContentIdentifier as null and it will attempt to bring up the detail page of the current app. If you need to bring up the detail page of a different app, then you will need to know the app id, which you can only get after that app has been published.

http://msdn.microsoft.com/en-us/library/hh394017%28v=vs.92%29.aspx

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