- Home /
Does SystemInfo.deviceUniqueIdentifier really need permission in Android?
I am using Unity 2017.1.1 for my project. I want to record user unique ID to track download record so I used SystemInfo.deviceUniqueIdentifier
. However, I found on the Internet that this variable needs READ_PHONE_STATE
permission on Android 6.0. I tested on two phones with different brands and both are in Android 6.0.1. The app did not ask me anything about the permission, and it got the ID without any problem? So I want to ask if we still need to ask the permission, or that is not necessary anymore?
Answer by kaarloew · Nov 23, 2018 at 07:53 AM
https://forum.unity.com/threads/unique-identifier-details.353256/ AFAIK it should work without READ_PHONE_STATE since if the check fails, it just uses another way.
Your answer
Follow this Question
Related Questions
I put sound in my project for android,but it is not work! 3 Answers
Remove the make a phone call permission (Android) 0 Answers
TimeZoneInfo.GetSystemTimeZones().Count gives 0 for unity android app 0 Answers
Is SystemInfo.deviceUniqueIdentifier reliable? 1 Answer
SystemInfo.deviceUniqueIdentifie sometimes returns 000000000000 on Android 0 Answers