Search docs/


Get unique identifiers: UUID, IMEI, IMSI, ICCID and MAC.

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!


ionic cordova plugin add cordova-plugin-uidnpm install @ionic-native/uid
Ionic Native Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android


import { Uid } from '@ionic-native/uid/ngx';
import { AndroidPermissions } from '@ionic-native/android-permissions/ngx';

constructor(private uid: Uid, private androidPermissions: AndroidPermissions) { }

async getImei() {
 const { hasPermission } = await this.androidPermissions.checkPermission(

 if (!hasPermission) {
   const result = await this.androidPermissions.requestPermission(

   if (!result.hasPermission) {
     throw new Error('Permissions required');

   // ok, a user gave us permission, we can get him identifiers after restart app

  return this.uid.IMEI