Ionic native device plugin @ionic-native/device returns all nulls
问题 I need to do a device detection in my Ionic project so I've installed @ionic-native/device plugin per instructions here: https://ionicframework.com/docs/native/device/ However when I wire it in inside of a component, then run ionic serve to preview changes, console.log returns Device object with all values set to null , same happens when I try to use individual property e.g. this.device.model : Here is how I use it inside of a component: import {Device} from "@ionic-native/device"; // ...