Can anyone help me with getting the device ID in ionic2 using typescript?
I have already installed the cordova-plugin-device
Here is my code snippet:
platform.ready().then(() => {
console.log(device.cordova);
}
Unfortunately, this code doesn't seem to be working as expected.
When I try to launch the app on my device, there are no logs displayed.
If anyone has any suggestions or solutions, please let me know.
Thank you in advance!