Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.