I advise you to check out http://wurfl.io/
In short, if you are importing a tiny JS file:
<script type='text/javascript' src="//wurfl.io/wurfl.js"></script>
you will have a JSON object that looks like this:
{ "complete_device_name":"Google Nexus 7", "is_mobile":true, "form_factor":"Tablet" }
(suppose you use Nexus 7, of course), and you can do things like:
WURFL.complete_device_name
This is what you are looking for.
Disclaimer: I work for a company offering this free service. Thank.
Luca Passani Mar 11 '14 at 17:18 2014-03-11 17:18
source share