• Hello,

    I’m including a php file in a widget area that includes some mobble detection such as is_handheld() and for some strange reason it’s working on my desktop but if I view the same page through my HTC or an iPhone using the Apple SDK simulator the code isn’t working.

    Should it matter that I’m running the detection from an included page?

    Thanks,

    James

    https://www.ads-software.com/extend/plugins/mobble/

Viewing 1 replies (of 1 total)
  • Plugin Author Scott (@scottsweb)

    (@scottsweb)

    Hi James
    Includes should be fine. It might be that the detection for those particular browsers/user agents is a little off. is_handheld() can be a bit vague (it tries to catch handheld games consoles for example). You may want to try is_mobile() || is_tablet().

    You may also want to try updating the mobile-detect.php library (https://mobiledetect.net/) as a new version is out. I hope to get around to this soon.

    Scott

Viewing 1 replies (of 1 total)
  • The topic ‘Working with included files?’ is closed to new replies.