Is there any way to check user Agent in ionic


#1

i read that navigator.userAgent is not preferable to use to check user agent so is there any other way to identify the device whether it is iOS or Android…


#2

Check out ionic.platform

http://ionicframework.com/docs/api/utility/ionic.Platform/