Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Ionic 4 native Device plugin returns device uuid null on platform browser

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles