Device version and os detection support for more devices
Closed this issue · 1 comments
maurerbot commented
Currently I have to add further detection the following ways for android, IOS, and BB...
//tracking setup
var parts = navigator.userAgent.split(/\s*[;)(]\s*/);
var osVersion = Modernizr.Detectizr.device.osVersion;
if (/^Version/.test(parts[5])) {
osVersion = parts[5].split("/")[1].split(" ")[0]; //(IOS/BB)
} else if (Modernizr.Detectizr.device.os === "android") {
osVersion = parts[3].split(" ").pop();
}
Currently trying to find a nice way to grab BB10 os from userAgent as well I have to check if windows devices work.
maurerbot commented
see pull request