I have an android app for my website and I want to inform users who visit the site about it.
I have seen that :
http://m.thehindu.com/
give a very nice option to users who visit the site.
So far I can identify if the user is accessing the site through an android device using :
if( /Android/i.test(navigator.userAgent) ) {
var r=confirm("Dwd android app");
if (r==true)
{
alert("You want to dwd app!");
}
}
I will then use the setcookie() function to find out if this is the user's first visit and store the response.
What I require is an option better than the "plain confirm" I am using to ask users if they want to download the app.
I do not even need a confirm box, I just need to notify a new user that an app is available for the website and give the option of download or skip.