-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android api 29 error getting uuid #36
Comments
same issue in my case , I am not able to fix that . |
i got same issue, any solution? |
I got this error also, someone managed to find an alternative? |
I think no one is managing it and I am also getting issue with permission . I have added android phone state permission but in many device I am getting null .Anyone have any idea ? |
You can try this link |
The native pluggin of ionic refferes to this same code so... |
Any update ? |
I have this problem too :( |
Same issue ...will this be updated soon? |
If anyone finds an alternative please post back..thanks. |
I used https://ionicframework.com/docs/v3/native/device/. (uuid of it ) . this is only way to work |
Does the uuid persist across multiple installs? |
yes , I tried with multiple device and multiple install & uninstall . It is working fine and I am using in end user app . I didn't get any issue yet . You should try and check . |
@Anujmoglix Will test and report back ...thanks. |
I had moved away from that plugin for UUIDs to this one because the UUID didn't persist between installs on iOS, guess i'll have to use both until there is a fix for android on this one. |
I managed to solve the issue by updating few lines in UniqueDeviceID.java and things started work as it was before wrt deviceID. imported android.os.Build to the file.
and updated getDeviceId method as below
see if it works for you. (you should remove and add the android platforms again once the plugin is updated with these changes) |
@RameshSenagasetti I can confirm this is working.
|
UPDATE Correction @RameshSenagasetti I see you are only using getDeviceId for everything lower than android 10 which is what is was doing before. I was under the impression though that you need READ_PRIVILEGED_PHONE_STATE for Android 10 >= ?? |
This thread might be useful to the conversation to officially fix this plugin https://stackoverflow.com/questions/4799394/is-secure-android-id-unique-for-each-device |
I am also getting this error. Any updates ? |
Two of three data used to generate the uniqueId are now no more accessible for Android 10.
See here So I think the idea of @RameshSenagasetti to only use Secure.ANDROID_ID when the device version is equal or more than Android 10 is good. But there will be some problem with devices being updated from Android 9 and less to 10 knowing that the generated ID will no more match |
Exception occurred: getDeviceId: The user 10136 does not meet the requirements to access device identifiers.
The text was updated successfully, but these errors were encountered: