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

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -