Devices not redirected to mobile site

Post Reply
stefanbagnato
Observer
Observer
Posts: 30
Joined: Sun Aug 20, 2017 9:35 pm
Location: Raleigh, NC
Station model: Davis Vantage Pro 2
Software: Meteotemplate
Contact:

Devices not redirected to mobile site

Post by stefanbagnato » Wed Jan 31, 2018 10:24 pm

I (finally) made the change in the Main Settings to redirect phones and tablets to my mobile site, using Jachym's fixed page. However, neither my Samsung GS6 nor my wife's iPad 4 redirect. Currently, I have both redirect settings set to "yes", hi and low-res devices set to 0px (default), and a little further down I have the custom page width set to 1600px. Any ideas as to what I am doing wrong?

User avatar
Dehatter
Professional
Professional
Posts: 350
Joined: Sun Jan 07, 2018 5:11 am
Location: Matthews, NC, USA
Station model: Ecowitt WH80
Software: Ecowitt GW1000
Contact:

Re: Devices not redirected to mobile site

Post by Dehatter » Wed Jan 31, 2018 10:46 pm

Here are where you decide what resolution get redirected.

The first number is devices identified as mobile (or tablet) but have high resolution go to desktop (1200px in my case)

The second number is a device identified and nonmobile but has a low resolution go to the mobile page (900px in my case)

I believe your mobile devices have a high resolution so if you want to, you can increase the first number to allow tablets and such to be redirected.

G6 has 2560 x 1440
ipad4 has 2048 x 1536


Tom
Attachments
redirect.jpg
redirect.jpg (42.16 KiB) Viewed 7876 times
Image

stefanbagnato
Observer
Observer
Posts: 30
Joined: Sun Aug 20, 2017 9:35 pm
Location: Raleigh, NC
Station model: Davis Vantage Pro 2
Software: Meteotemplate
Contact:

Re: Devices not redirected to mobile site

Post by stefanbagnato » Fri Feb 02, 2018 1:00 am

Thanks, Tom. It's odd, because no matter what pixel count I set them to, nothing redirects. Currently set at 1600 and 900. If you could, would you mind testing it? Southwakeweather.com

User avatar
Dehatter
Professional
Professional
Posts: 350
Joined: Sun Jan 07, 2018 5:11 am
Location: Matthews, NC, USA
Station model: Ecowitt WH80
Software: Ecowitt GW1000
Contact:

Re: Devices not redirected to mobile site

Post by Dehatter » Fri Feb 02, 2018 1:50 am

Well I did not get redirected on my iPhone 7. just a crazy idea... Did you click save at the bottom? Sometimes I forget to click it.

And you have the redirect phones and tablets marked yes?

Just double checking.

If I select the phone page at the bottom, your mobile site is indeed working.

If you answer yes, it is beyond my help.

Tom
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Devices not redirected to mobile site

Post by Jachym » Fri Feb 02, 2018 5:27 am

The problem is that some phones or tablet these days have resolution equivalent to PCs, in which case the desktop site should work fine (if you are using landscape mode).

stefanbagnato
Observer
Observer
Posts: 30
Joined: Sun Aug 20, 2017 9:35 pm
Location: Raleigh, NC
Station model: Davis Vantage Pro 2
Software: Meteotemplate
Contact:

Re: Devices not redirected to mobile site

Post by stefanbagnato » Fri Feb 02, 2018 8:34 pm

I did save it, although I have forgotten before, so it wasn't a bad suggestion.

Jachym, given the devices I mentioned above with the resolutions, should I just try to set that number even higher? I tested it all the way up to 2600....

I am not too concerned about how it ends up coming up on the iPad; I am really more focused on cell phones.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Devices not redirected to mobile site

Post by Jachym » Fri Feb 02, 2018 11:05 pm

The script for detecting a phone and tablets is not 100% reliable, mostly because some high-end phones behave as PCs. I would try playing around with the widths, yes.

Post Reply