My HTML app is wrapped in Phonegap and available on the Android store.
I want to include a link within the app for users to update it if a new version is available.
From what I've gathered from documentation and some Stack Overflow posts, the following code should open the store:
Update App
However, I need to trigger this link using JavaScript. I've attempted both window.open and window.location.href but they only open the browser and display a URL not found error with a URL starting with http://market://details...
Does anyone know why this happens or how I can directly link to the store instead of the Play website?
---------------UPDATE -------------------
I'm specifically looking to open the native Play Store, not just any browser-based version. It's been done before as smartbanner manages to do so successfully. More information can be found here:
Despite knowing that it's possible, I haven't been able to replicate this functionality. Any insights would be greatly appreciated.