title: ionic device plugin returning null
body: <p>No matter what I do or try I can't get info about the device.  I'm using last version of ionic 4.</p>
  
  <p>Since  all I find online is basically </p>
  
  <ul>
  <li>Don't execute on browser</li>
  <li>get the values one by one</li>
  </ul>
  
  <p>Of course that's not what's going on. I'm not doing that, I have cordova available, etc.</p>
  
  <p>I'm testing on device, both android and ios. I deal with this in a service. I'm calling the functions with buttons so everything is more than loeaded, everything is ready. This is the code I'm trying to make work:</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { Device } from '@ionic-native/device/ngx';
  import { Platform } from '@ionic/angular';
  
  @Injectable({
    providedIn: 'root'
  })
  export class InitialService {
  
    eldevice: any = '';
  
    constructor(
      private device: Device,
      private platform: Platform
    ) {}
  
    async setup() {
      if (this.platform.is('cordova')) { // es movil
  
        this.eldevice = await this.storage.get('device');
  
        if (this.eldevice == null) { // nuevo device
  
          this.eldevice.platform = this.device.platform;
          this.eldevice.version = this.device.version;
          this.eldevice.uuid = this.device.uuid;
          this.eldevice.manufacturer = this.device.manufacturer;
  
          console.log('datos sin await', this.eldevice);
  
          this.eldevice = await this.storage.set('device', this.device);
  
        } else { // device conocido
          console.log('datos guardados', this.eldevice);
  
        }
      } else { // es virtual
        console.log('virtual');
  
      }
    }
  
    clearData() {
      this.storage.clear();
      this.eldevice = null;
    }
  }
  </code></pre>