Closed toneplex closed 3 years ago
I second request for Platform.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
@toneplex @nodeGarden yes, I'm focusing on it as we speak, these features (see also: https://github.com/serbanghita/Mobile-Detect/wiki) will be available in the v.3.0
yeah server side detection at its best. on the other note, is there a version for mobiledetect in ruby, asp and python?
@matthewsuan - I know of http://pypi.python.org/pypi/pymobiledetect ; check https://github.com/serbanghita/Mobile-Detect#projects-that-are-using-the-class
I'm at odds with myself on this one because of these two contesting issues:
array_key_exists()
or isset()
and that's not DRY.$mobileDetect->getDevice()->getPlatform()
without being un-DRY.Thoughts?
@nicktacular yes, agree, but it should also be noob-friendly.
Check my proposal: https://github.com/serbanghita/Mobile-Detect/wiki/Road-to-3.0.0 (see what()
)
Also see:https://github.com/tobie/ua-parser/issues/294
Maybe we can do them both. I really like the $mobileDetect->getDevice()->getPlatform()
, because you always work in a context, but we should also have a dump
/dumb
result available.
What do you think?
https://github.com/serbanghita/Mobile-Detect/issues/15#issuecomment-782725480
I experimented with this, see https://github.com/serbanghita/Mobile-Detect/tree/devel-3-workinprogress/lib, and it's very hard to maintain. I'll keep the a tight focus to Mobile Detect, and that is to detect the mobile environment and focus on the separation of mobiles vs tablets.
Since browscap doesn't have the ability to distinguish between a phone and a tablet, it would be very nice to replace browscap with mobile-detect. Do you have any plans to add desktop detection, OS version, etc. to mobile-detect?
Specifically, my need would be for the following array:
Array ( [platform] => WinXP [browser] => Firefox [version] => 0.9 [majorver] => 0 [minorver] => 9 );