User agent check for Windows device -
i'm using similar following code snippet in apex controller check if accessing website iphone or android phone.
useragent.contains('iphone') || ( useragent.contains('android') && useragent.contains('mobile'));
can use similar check if using windows device?
according version of categorizr have on hand, following detects windows mobile:
useragent.contains('windows.nt.5')
i'm not sure if more recent list needs applying
Comments
Post a Comment