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 brower website redirect

Featured Replies

Id Imagine youd want to be checking the user agent, if user agents is a mobile browser whisk them off to the second domain

Take a look at the code from here. Should give you an idea of how to go about checking the user agent.

  • Author

Okay great thanks guys.

 

One question. I have the function:

 

<?php include('mobile_device_detect.php');
mobile_device_detect(true,true,true,true,true,true,'http://www.gmedia18.com',false); ?>

 

Where do I put it? HELP! 8)

Edited by Sam G
added [code] tags

http://www.kevinbradwick.co.uk/?p=106

 

I wrote an article on it a while back. The principle uses the USER_AGENT variable to check for mobile browser. The drawback is obtaining a comprehensive list of user agents, I haven't spent enough time on this myself...

http://www.kevinbradwick.co.uk/?p=106

 

I wrote an article on it a while back. The principle uses the USER_AGENT variable to check for mobile browser. The drawback is obtaining a comprehensive list of user agents, I haven't spent enough time on this myself...

 

..looking at my code, I would rewrite it using the in_array() function, reducing lines of unnecessary code...

  • Author

Thanks Guys! 8)

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.