Native Plugin UniqueDeviceId not working with Ionic 3

I followed the instructions at: and the version 5.0.0 is installed. My code is just a copy and paste from that page:

this.uniqueDeviceID.get() .then((uuid: any) => { console.log("UUID", uuid); }) .catch((error: any) => { console.log("UUID ERROR:", error)} );

When running in an iOS simulator I got this error: Error: Uncaught (in promise): TypeError: Object(WEBPACK_IMPORTED_MODULE_0__ionic_native_core[“cordova”]) is not a function.

Seems pretty strange to me, unless latest release has only been checked against Ionic 4…
Any idea is appreciated.

Landed on this page as i have similar errors with two other modules, maybe they are not related but i feel they are in common (at least in time i wasted on them).

ERROR TypeError: Object(...) is not a function
    at Device.get [as uuid]



ERROR Error: Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function

I posted the 2nd issue here:

I Would love to finally bust this beast modules! :slight_smile:

Well, I forgot to “close” this issue, thanks to bump back to me.
The problem relates to the release of Ionic 4 and the fact that the documentation refers ONLY to it, without making it clear. There should be a clear evidence on the page ( that the instructions to install it are for Ionic 4 ONLY.
If, by chance, you click on the V3 link at the top right of the page, you are not directed to instructions for V3 for this specific plugin, but to the root of the docs…
So, to find the correct instructions to load your plugin with Ionic 3, just add a /v3/ in the url, just after docs: