Jump to content

Inform website users about website app


phpidz

Recommended Posts

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.


Link to comment
https://forums.phpfreaks.com/topic/284278-inform-website-users-about-website-app/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.