Mobile view on v1.19.4.5011

Discussion forum about Anuko Time Tracker
Post Reply
jweb
Posts: 3
Joined: Wed Oct 16, 2019 3:38 pm

Mobile view on v1.19.4.5011

Post by jweb » Wed Oct 16, 2019 3:42 pm

Anuko's site said that a mobile view is implemented for several pages including time tracking. However, the mobile view isn't rendering on mobile devices. Before I dug in I wanted to see if there was something to be aware of. Can anyone assist?

Nik
Posts: 488
Joined: Wed May 26, 2010 5:55 pm

Re: Mobile view on v1.19.4.5011

Post by Nik » Wed Oct 16, 2019 3:59 pm

What exactly is your mobile device and what do you mean by "isn't rendering". Did you try accessing mobile pages directly, something like:

https://timetracker.anuko.com/mobile/time.php

Please attach a picture if you can.

jweb
Posts: 3
Joined: Wed Oct 16, 2019 3:38 pm

Re: Mobile view on v1.19.4.5011

Post by jweb » Wed Oct 16, 2019 5:53 pm

Thanks for the reply.

It's been attempted on various phones including iPhones, Galaxy S8, s10.

Sorry for the vagueness. The desktop page loads on mobile, rather than the mobile page. Yes, if navigated to directly it does work. Is there some config to fine tune what it considers to be mobile?

wrc
Posts: 289
Joined: Tue May 25, 2010 8:30 pm

Re: Mobile view on v1.19.4.5011

Post by wrc » Wed Oct 16, 2019 7:26 pm

jweb wrote:
Wed Oct 16, 2019 5:53 pm
Thanks for the reply.

It's been attempted on various phones including iPhones, Galaxy S8, s10.

Sorry for the vagueness. The desktop page loads on mobile, rather than the mobile page. Yes, if navigated to directly it does work. Is there some config to fine tune what it considers to be mobile?
Are your redirects working?

What does dbinstall.php report in its Envoronment Checks version? Do you have, by any chance, the WEB-INF/config.php file does not start with a PHP opening tag error? This will break redirects. See https://www.anuko.com/time_tracker/what ... hp_tag.htm

There is a script in index.php that determines if a browser is mobile or not and does a redirect if it is, but if your redirects are broken, apparently nothing will happen.

jweb
Posts: 3
Joined: Wed Oct 16, 2019 3:38 pm

Re: Mobile view on v1.19.4.5011

Post by jweb » Fri Oct 18, 2019 5:19 pm

Thanks. The problem seemed to be not really a problem at all, but that the /time.php page doesn't check for whether it's a mobile client. So unless I navigate to index.php the redirect won't happen. I added the check to time.php and it's behjaving as I'd expect.

Post Reply