I am unable to get IMEI number of my device from my ionic application (android). I tried several ways to do that but failed. How may i suppose to get IMEI number of my device through ionic??
Asked
Active
Viewed 1,439 times
1 Answers
0
you can use imeiplugin
install
phonegap plugin add https://github.com/zho/phonegap-imeiplugin.git
-- OR --
cordova plugin add imeiplugin
Example Usage:
window.plugins.imeiplugin.getImei(callback);
function callback(imei) {
console.log("My Android IMEI :" + imei);
}
for more reference https://www.npmjs.com/package/imeiplugin

Edison Augusthy
- 1,535
- 17
- 32
-
"TypeError: Cannot read property 'imeiplugin' of undefined" this error is showing – Usama Ishaque Apr 24 '17 at 11:34
-
@UsamaIshaque see this https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-device/ – Edison Augusthy Apr 24 '17 at 11:40
-
I saw this and also was able to fetch uuid but i just want to get IMEI of my device through ionic not the properties that cordova-plugin-device provides. – Usama Ishaque Apr 24 '17 at 11:46
-
@SanketMendon take a look on `https://github.com/edisonpappi/phonegap-imeiplugin` – Edison Augusthy Apr 27 '18 at 04:54
-
@Edison I tried as it is mentioned in the above link. The android console log gives a Security exception unhandled by the cordova plugin. – Sanket Mendon Apr 27 '18 at 05:26