CodeIgniter Forums
Mobile Detect Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Mobile Detect Library (/showthread.php?tid=56232)



Mobile Detect Library - El Forum - 12-04-2012

[eluser]pjlasl[/eluser]
First of all I want to say that I do not take credit for the content of this library. I just ported it to CI. All credit belongs to the developer(s) at http://www.mobiledetect.net/.

Documentation is available at their site. Current version is 2.5.2

I will try to keep this updated as much as possible.




Mobile Detect Library - El Forum - 12-04-2012

[eluser]PhilTem[/eluser]
I'm curious how much this class differs from the methods that CI has built-in using the user-agent class. Do you have any unit testings on that?


Mobile Detect Library - El Forum - 12-04-2012

[eluser]pjlasl[/eluser]
I honestly have not used the user-agent library in great depth, but the little I have looked at it, it does not contain all the options the mobiledetect class has.

You can identify between Os (i.e. Android/iOS), phone types (samsung, iphone, etc) and use functions like IsTablet, IsIpad, etc. It is alot more specific and detailed compared to the user-agent class in CI.