Home » Android » How to open android app playstore link from browser ?

How to open android app playstore link from browser ?

When we published one our application in playsore, we wanted to make sure our website visitors should directly go to our Android app published in playsote and install it from there. For this, we created a banner and tried to hyperlink with html img and a href links.

Initially we tried code as below, ( NOte: below you need to change package name as per your app and banner image src)

<a href="https://play.google.com/store/apps/details?id=agbee.greenecosystem.in"><img src="https://blog-greenecosystem-in.mwpsites-a.net/wp-content/uploads/2020/12/download_app.jpg"></img></a>

This html code shows the banner image, but when user clicks on this image, the browser opens our applications playstore link in browser with a button below as “Open in Play Store App” but since visitor doesn’t get redirected to google playstore app installed on your mobile app, chances are more that users will not install our app, and purpose of this banner will not be served.

The solution to above problem is prepend “https://play.app.goo.gl/?link” in the href code as,

<a href="https://play.app.goo.gl/?link=https://play.google.com/store/apps/details?id=agbee.greenecosystem.in"><img src="https://blog-greenecosystem-in.mwpsites-a.net/wp-content/uploads/2020/12/download_app.jpg"></img></a>

Now, if user clicks on banner image, it will automatically open Google PlayStore app and show our android application to be installed.


Subscribe our Rurban Life YouTube Channel.. "Rural Life, Urban LifeStyle"

Leave a Comment