Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone App OS Detection via User Agent

Tags:

ios

iphone

In my awstats log (cpanel), the webservice consumed by the iphone app shows various user-agents like:

AppName/1.6 CFNetwork/485.13.9 Darwin/11.0.0
AppName/1.6 CFNetwork/548.0.3 Darwin/11.0.0
AppName/1.0 CFNetwork/485.13.9 Darwin/11.0.0

Is there a way to make sense of this? I am more interested in finding out the devices (iPhone, iPad etc.) and OSes (iOS4, iOS5 etc.) is that possible from this user agent?

like image 801
xoail Avatar asked Oct 27 '11 19:10

xoail


1 Answers

There is not much info here. It turns out, it is in format :

AppName/AppVerson, CFNetwork/iOSVersion (4xx/5xx), Darwin/11.0.0
AppName/1.6 CFNetwork/485.13.9 Darwin/11.0.0
like image 86
xoail Avatar answered Oct 13 '22 00:10

xoail