Here is my code
Html Code
I am trying to open app if installed otherwise it will redirect me to play store. Its working when i click on link but i need to redirect it automatically
<a id="link_id" href="app://details?id=agd.solutions.myapplication"fallbackhref="market://details?id=agd.solutions.myapplication">Click to download</a>
Jquery Code
I have tried everything but its not working
jQuery('#link_id').click();
$("#link_id").trigger("click");
$('a').get(0).click();
$('a')[0].click();
$('#link_id')[0].click();
Tried all the above option but not working