Search code examples
androidcordovauuidngcordovaimei

How to get IMEI (not UUID) of mobile handset using cordova?


I have a requirement to get the real device IMEI (64-bit number displayed when dialed '*#06#') using cordova. ngCordova provides the UUID a hexstring. But UUID may change from user to user or after a factory reset as per the accepted answer here. Some google effort pulled me to a cordova plugin 'ngCordova-IMEI', but no luck with Android 6.0 (have not tried with other versions). Is there any way out?


Solution

  • This plugin to do the job for you. But its android only solution as getting UUID is disallowed in iOS.

    This plugin allows you to retrieve most information about your Android devices that are available through Android's Telephony Manager and Account Manager classes from your PhoneGap application

    Request you to check out the following SO posts for more info.

    1) Getting IMEI Number in cordova app

    2) Getting IMEI Number in iOS