Paldom / UniqueDeviceID

PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.
MIT License
170 stars 96 forks source link

Does not work on Android API23 #16

Open confile opened 9 years ago

confile commented 9 years ago

On API 23 I have:

 <uses-permission android:name="android.permission.READ_PHONE_STATE" />

but still I get this error:

java.lang.SecurityException: getDeviceId: Neither user 10058 nor current process has android.permission.READ_PHONE_STATE.
Paldom commented 8 years ago

Please check version 1.3.1

winstef commented 8 years ago

I have the same issue even with the new version. the permission is correctly added to the AndroidManifest, but still it throw that error.

mohanchalla commented 8 years ago

Hi! Does anyone get the solution for this issue. Even for me also it happening in the same. If I open the app first time then UUID will not generated. If I open for second time then it will give the UUID number.

ghost commented 8 years ago

Hello, Are there any solutions for this bug? Using version 1.3.1, get an error:

java.lang.SecurityException: Neither user nor current process has android.permission.READ_PHONE_STATE

avisarine commented 8 years ago

Hello, Any updates on this? Still not working after target api 23 update..

HriBB commented 8 years ago

+1

Trying to find a solution ...

avisarine commented 8 years ago

Found the solution.. I have updated cordova, iOS and Android for cordova, and all plugins.. Works good on both.

sagrawal31 commented 5 years ago

We are now maintaining a fork of this repository https://github.com/wizpanda/cordova-plugin-unique-device-id2.