Closed (fixed)
Project:
Mobile Tools
Version:
6.x-2.4
Component:
Miscellaneous
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2012 at 14:03 UTC
Updated:
31 Aug 2012 at 13:01 UTC
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
Comment #1
captainpants commentedJust 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.
Comment #2
captainpants commentedNevermind, 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.
Comment #3
captainpants commentedNevermind. It was a boost issue that's illustrated in this thread. My solution can be found there.