how to link directly to app store app X from app Y?

Anyone able to confirm how, within app Y on the device, to link directly to app X on the app store, for both:

a) IOS (i.e. to launch app X in the app store directly)

B) Android (i.e. to launch to app X on Google Play Market play)

I have been using the following, however it appears to go via the browser which then launches the app store.  I just saw an app on the iPad for which they launched app store directly and I didn’t see Safari appearing in between.   

What I’m currently doing:

Constants["FULLVERSION\_URL\_APPLE"] = "http://itunes.com/apps/company/appX" Constants["FULLVERSION\_URL\_GOOGLEPLAY"] = "https://play.google.com/store/apps/details?id=au.com.company.appX" if device.isApple then system.openURL( Constants["FULLVERSION\_URL\_APPLE"] ) elseif device.isAndroid then system.openURL( Constants["FULLVERSION\_URL\_GOOGLEPLAY"] ) else end 

Hi Greg,

I think what you’re looking for is the native popup with the “appStore” parameter. Let me know if this will do what you need.

http://docs.coronalabs.com/api/library/native/showPopup.html

Brent

Hi Brent - thanks, I think this is it.  So will “Show the app store details of another app that you wish to advertise.” will bring up the AppStore or Market Place (depending on IOS or Android) ready for the user to download right?

Hi Greg,

Yes, that should work, as long as you carefully put in the details of the app to advertise (as documented in the link I showed you).

Brent

Tks Brent

Hi Greg,

I think what you’re looking for is the native popup with the “appStore” parameter. Let me know if this will do what you need.

http://docs.coronalabs.com/api/library/native/showPopup.html

Brent

Hi Brent - thanks, I think this is it.  So will “Show the app store details of another app that you wish to advertise.” will bring up the AppStore or Market Place (depending on IOS or Android) ready for the user to download right?

Hi Greg,

Yes, that should work, as long as you carefully put in the details of the app to advertise (as documented in the link I showed you).

Brent

Tks Brent