The following method will return the useragent full details.
     navigator.userAgent
     /(ipad|iphone|ipod|android|windows phone)/i.test(navigator.userAgent)
 if(( /(ipad|iphone|ipod|android|windows phone)/i.test(navigator.userAgent) ))
 {
  cordova.plugins.Keyboard.close();  
 }In the above method is only working in mobile, we can't run cordova methods in PC.
Example Program:- (Editor)
Editor is Loading...
Advertisement

 

0 nhận xét:
Đăng nhận xét