I am developing a mobile website and am currently performing a user discovery to determine if the mobile device should see fully enhanced js, jquery mobile, css view or simple backup.
Here is what I currently have for my two questions, and I would like to receive some suggestions / suggestions on how this can be improved - this filtering is evaluated top-down:
Advanced view if the user agent contains the following: "iPhone", "iPad", "Android 3", "Android 2", "MSIE 9", "MSIE 8", "MSIE 7", "Windows Phone OS 7", " IEMobile / 7 "," BlackBerry99 "," BlackBerry 9800 "," BlackBerry Tablet "
then the Backup view , if the user agent contains the following: "Android 1", "MSIE 6", "MSIE 5", "MSIE 4", "MSIE" 3 ", that is, a whole bunch of old Blackberry UAs, i.e." BlackBerry8 "and older Opera Mini versions ie" Opera Mini / 3 "...
and then Advanced View if it turns out to be a web browser (also useful for testing). This is again determined by the user agent rules.
then the Backup view when the user agent is loaded (and found) in the WURFL API and the release date is considered too old. At the moment, I see this as until 2007.
then Backup view when the WURFL function device_os shows "Windows Mobile OS" with the option device_os_version "5" or "6".
then Advanced view , because it canβt determine what they are using, so give a better experience (this will serve the new graduation phones)
How to configure this, it is better to find reasons to exclude the device than turn it on, since the last condition will return an expanded view.