@tauqeerhaider wrote:
By running
ionic cordova run browser
device uuid is null as Device object is empty on browser platform.Device info should be there as it supports browser platform like
platform: browser
uuid: "someid"
etc.Here’s my code
import { Device } from '@ionic-native/device/ngx';
constructor(private device: Device) { }
console.log('Device UUID is: ' + this.device.uuid);
Result:
Device UUID is: null
I’m using
@ionic-native/device": "^5.5.0
Please help me out how to resolve this problem. I have tested the code on android device. It’s working fine
Posts: 1
Participants: 1