jquery - How to find in which device (mobile(android or Ios) or desktop) the web application is opened -


i working on web application project using angularjs has mobile applications android , ios. want when web application open in mobile need find device type , check mobile app installed or not, if installed should open in mobile app, if not download button there app-link.thanks in advance

using $window services,

you can check one

var useragent = $window.navigator.useragent;  /(iphone|ipad|ipod).* os 9_\d/.test(useragent) && !/version\/9\./.test(useragent); 

Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -