Hey all,

The title pretty much sums up my problem. I have a set up on my website that basically prompts the user to go to the mobile site if it is found that the user agent is a mobile device. The way I'm doing this is through the function mobile_tools_get_device(); which I then grab the ['type'] and ['group'] variables from the returned array. I did find that this problem occurs on specific pages on my website.

Any insight as to why the module seldom thinks that ['type'] == 'mobile' and ['group'] == 'iphone' while using a desktop user agent?

Comments

captainpants’s picture

Just an update,

It seems like the phenomenon listed above stops if I clear the boost cache from the boost module, but of course it will randomly reoccur again.

captainpants’s picture

Title: Mobile tools seldomly thinks desktop is an iphone » Mobile tools not working for anonymous users
Category: bug » support
Priority: Normal » Major

Nevermind, I did solve the problem above by using Browscap for mobile detection, however I ran into a different problem.

Mobile tools works on my local environment now (redirecting, prompting the user, etc...) but it does not do any of these things on my live environment for anonymous users. In addition... for whatever reason, it seems to be working for the /user page whether or not you're anonymous.

captainpants’s picture

Status: Active » Fixed

Nevermind. It was a boost issue that's illustrated in this thread. My solution can be found there.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.