You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How persistent does the unique identifier need to be? For example, does it need to survive restarts of the app? Restarts of the phone? Reinstall of the app? Flashing a new OS? Factory reseting the device?
I was thinking to get the ANDROID_ID (Settings.Secure.ANDROID_ID) or something equivalent to that. Android Id seems to be generated first time device boots. It is reset when the device is wiped.
@abarth I removed the slides label as this is no longer needed by the slides app since we are now using a different mechanism to uniquely identify the service (Syncbase) running on the device. ( We now rely on discovery and an service address - normally IP:Port:Vanadium Generated Unique ID )
This might still be a useful feature to have in Flutter but not needed by slides anymore.
@Wilburt Hello! I don't get it, I installed the plugin device_info but can't see any way to get the android unique device id. Do you know how to get it using that plugin? any help or input appreciated, thanks!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
abarth commentedon Nov 12, 2015
Can you add a link to the exact Android API that you'd like to be made available?
abarth commentedon Nov 12, 2015
How persistent does the unique identifier need to be? For example, does it need to survive restarts of the app? Restarts of the phone? Reinstall of the app? Flashing a new OS? Factory reseting the device?
aghassemi commentedon Nov 13, 2015
I was thinking to get the ANDROID_ID (Settings.Secure.ANDROID_ID) or something equivalent to that. Android Id seems to be generated first time device boots. It is reset when the device is wiped.
@abarth I removed the slides label as this is no longer needed by the slides app since we are now using a different mechanism to uniquely identify the service (Syncbase) running on the device. ( We now rely on discovery and an service address - normally IP:Port:Vanadium Generated Unique ID )
This might still be a useful feature to have in Flutter but not needed by slides anymore.
abarth commentedon Nov 13, 2015
Thanks!
stevenroose commentedon Dec 11, 2015
This is crucial. A lot of apps rely on some kind of unique device identifier.
Android provides one here: https://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID
So it would be useful is Flutter provided a way to access that same identifier.
abarth commentedon Dec 11, 2015
Got it.
18 remaining items
sethladd commentedon Jan 27, 2016
Thanks for confirming, @jason-simmons !
Flutter package (both master and alpha) right now is using sky_engine 0.0.87. Hang tight, we'll get everything upgraded :)
abarth commentedon Oct 16, 2016
We've also got a plugin for this now.
wilburx9 commentedon Apr 15, 2018
This plugin does this now.
matte5031 commentedon Apr 2, 2019
@Wilburt Hello! I don't get it, I installed the plugin device_info but can't see any way to get the android unique device id. Do you know how to get it using that plugin? any help or input appreciated, thanks!
nvquangth commentedon May 23, 2019
@matte5031 I think you can use:
DeviceInfoPlugin deviceInfo = DeviceInfoPlugin();AndroidDeviceInfo androidInfo = await deviceInfo.androidInfo;print('uuid: ${androidInfo.androidId}');Katekko commentedon Jul 24, 2020
Why the android ID will change if the app is unistalled??

Was a wrong typing?
tapizquent commentedon Aug 18, 2020
Trying to understand this as well. Is there any way to get an ID that does not change when app is uninstalled and reinstalled?
dhameliyamilan commentedon Oct 12, 2020
There is no any API to get deviceId but Here is Explained How to get it by step by step How to Get DeviceId in Flutter with Example Source Code
github-actions commentedon Aug 11, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.