title: Open play store app from browser link
body: <p>From <a href="https://stackoverflow.com/questions/35430336/redirect-users-to-itunes-app-store-or-google-play-store">this post</a> I was able to create a functionality to redirect user to android or ios from a single link. However, on detection of Android I want to open the play store with my app shown. I tried the below link on redirect:</p>
  
  <pre><code>window.location.href = "https://play.google.com/store/apps/details?id=com.myapp";
  </code></pre>
  
  <p>but it opens the play store in the browser itself. I want to open the play store app, I am assuming that my app users will be having the play store app, so I do not want to check whether the play store app is installed or not. I also tried the market link as below</p>
  
  <pre><code>window.location.href = "market://details?id=com.myapp";
  </code></pre>
  
  <p>but this also does not work. Help appreciated.</p>