0

I build an APP with phonegap. I have added a custom settings menu, with ul li tags, One of the tag needs to be a link, so users can click and go to PLay store to rate the APP. I am not sure how to achieve this.

<ul>
<li><a href="javascript: void(0);" class="rate_app">Rate App</a></li>
<li><a href="javascript: void(0);" class="exit_app">Exit APP</a></li>
</ul>




   $("li a.rate_app").on('click', function() {
    this.href="https://play.google.com/store/apps/details?
     id=com.project.projectXXX" //I need this link?
    }); 

Any Ideas?

Thanks

Mike
  • 3,348
  • 11
  • 45
  • 80
  • Check this link http://stackoverflow.com/questions/7852804/how-to-implement-a-rate-us-feature-in-a-phonegap-app Hope this helps. – Arun Bertil Jul 22 '13 at 12:08

2 Answers2

0

You should point to window.location = "https://play.google.com/store/apps/details? id=com.project.projectXXX"

  • I think that will just open the new browser window. I want to open my APP in play store, so users can rate it and review it. – Mike Jul 22 '13 at 10:41
0

Try to open it with the internal browser as following:

window.open('https://play.google.com/store/apps/details?id=com.project.projectXXX', '_blank', 'location=yes');
Jannik Weichert
  • 1,623
  • 16
  • 28