title: How to find device os and version in ionic
body: <p>I have worked on few tutorials and at last found something regarding this in ionic framework.....</p>
  
  <p>They gave some codes that use ionic native and i did the same by embedding the below code:</p>
  
  <pre><code>//Display OS name and version (Start)
  import { Device } from 'ionic-native';
  
  
  console.log('Device OS is: ' + Device.device.platform);
  console.log('Device OS Version is: ' + Device.device.version);
  
  //Display OS name and version (End) 
  </code></pre>
  
  <p>While using ionic serve i got this in the console:</p>
  
  <pre><code>'Device OS is: undefined'
  'Device OS version is: undefined'
  </code></pre>
  
  <p>Then i guessed it wont work in browser and i tried building and run in my phone but still the same log comes...</p>
  
  <p>PS: I have just started with ionic</p>
  
  <p>Thank you in advance :)</p>