Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mobile detecting app

Featured Replies

Is there a way where when my website has been viewed through mobile, can it detect an app and so that it can be downloaded and viewed? For example Android an app for the website will appear showing that the android app is available to download the app a bit like http://www.buzzfeed.com/ if you go to a mobile is gives you an app dowload?

Edited by Vulcan

Yes when a browser sends a request to a server it (usually) identifies itself with a user agent string sent along with the request. The user agent string contains information about what browser and operating system is used. The string can be accessed with server side code but it is also stored in the JavaScript window object's property navigator.userAgent .

To detect Android devices you would simply search for a match for the word "Android" in the string

if(navigator.userAgent.indexOf('Android') > -1){
    /*Android OS detected now do your thing*/
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.