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

How to open android app playstore link from browser ?

Opening an Android app’s Play Store link from a browser can be incredibly useful for promoting your app, sharing it with others, or creating easy access from web pages. Whether you’re a developer looking to enhance user experience or simply want to share your favorite app, knowing how to generate and use Play Store links is essential. This blog post will guide you through the steps to create and use these links effectively.

When we published one our application in playstore, we wanted to make sure our website visitors should directly go to our Android app published in playstore 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.

Leave a Comment