Skip to main content
Known Participant
February 15, 2014
Answered

Code or link to open app store

  • February 15, 2014
  • 1 reply
  • 1319 views

Dear developers,  I have a Lite version of an app that I would like to create a button that would then open up the app store and allow a user to purchase the Full version.  After searching I found code to point to the review section, but I just want the store to open to the introductory page.

If someone has the code or link to achieve this, I would greatly appreciate it.

Thanks, Justin

This topic has been closed for replies.
Correct answer Colin Holgate

You open the page with:

var req: URLRequest = new URLRequest(link);

navigateToURL(req);

where “link” would be different depending on the store in question. Here are examples for iTunes, Google, and Amazon:

https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=550520652&mt=8

market://details?id=com.sesameworkshop.SSMFresources&hl=en

amzn://apps/android?p=com.sesameworkshop.SSMFresources

1 reply

Colin Holgate
Colin HolgateCorrect answer
Inspiring
February 15, 2014

You open the page with:

var req: URLRequest = new URLRequest(link);

navigateToURL(req);

where “link” would be different depending on the store in question. Here are examples for iTunes, Google, and Amazon:

https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=550520652&mt=8

market://details?id=com.sesameworkshop.SSMFresources&hl=en

amzn://apps/android?p=com.sesameworkshop.SSMFresources

Known Participant
February 16, 2014

Thanks Colin, very much appreciated.  I will try to implement the code this morning and see what happens in terms of sales.  When I release my next game in March, for sure I will start off with the buy button right away.

Justin

Known Participant
February 16, 2014

Hi Colin...sorry to bother you with this BUT I could not get the link to work.  It opens the app store but then draws a blank.  When I cut and paste your link into my desktop browser, your preview for your app comes up.  Then, I substituted my id where your id was, but when I tried bringing it up with a desktop browser, it said null reference.  I checked my id multiple times and could not get it to work.  Any ideas???

Justin