How to get webView webpage links to open up Google Play Store or Amazon Store

Hey guys,

Ok so we make Kids games.  We have a website with 3 different versions of our More Apps page that are for IOS, Android, Amazon.  So the iOS games will have a button that opens up a webView for each webpage appropriately.  Same thing for the Android page and Amazon page.

On the iOS version of our app, if you click on a link in the a webView that we open after clicking on our More Apps Button, it will open up the iOS Appstore on the device, which is what we want it to do.

But on the Android/Amazon devices, it keeps the new link inside of the webView, which we do not want.  We want it to open up the appropriate web store (either Google Play or Amazon, depending on the device).

Is there a way to do this, either from within the app, or from the external webpage.  

Thanks,

Ed

Hello there.

I am also interested about how we can accomplish this.

Have you found a solution yet? Or maybe someone else has any idea about this?

Thank you.

I’ve heard from Engineering and this is seemingly a difficult thing to do with Android.  They suggest putting code in the eventListener to intercept the URL and then use our native.showPopup() API to take you straight to the store.  I would suggest using this and creating your own in-app system instead of using a webView if possible.  The native.showPopup() API works well for this sort of thing:
 

http://docs.coronalabs.com/api/library/native/showPopup.html#store-details-for-another-app

Rob

Hello there.

I am also interested about how we can accomplish this.

Have you found a solution yet? Or maybe someone else has any idea about this?

Thank you.

I’ve heard from Engineering and this is seemingly a difficult thing to do with Android.  They suggest putting code in the eventListener to intercept the URL and then use our native.showPopup() API to take you straight to the store.  I would suggest using this and creating your own in-app system instead of using a webView if possible.  The native.showPopup() API works well for this sort of thing:
 

http://docs.coronalabs.com/api/library/native/showPopup.html#store-details-for-another-app

Rob