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

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?

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…

1 Like