How to get device and platform information on Desktop, mobile native & as in browser app?


#1

How to get device and platform infor - ex. OS and version, Browser and version, screen resolution, device made.
(specific to desktop, mobile devices etc)

I tried with ionic.platform and deviceinfo, but it doesn’t work for Desktop web applications. is there any other packages?


#3

Well you could use deviceinfo for devices and something like window.navigator for desktop… Just check if cordova is avalible and use deviceinfo if it is and then use window.navigator as fallback…

http://www.w3schools.com/js/js_window_navigator.asp