Closed kaichun831 closed 2 years ago
Same here on v4.0.0 but on Change Log:
Same here on v4.0.0 but on Change Log:
- Breaking change Remove AndroidId getter to avoid Google Play policies violations
How to solve it?
Same here on v4.0.0 but on Change Log:
- Breaking change Remove AndroidId getter to avoid Google Play policies violations
How to solve it?
I started to generate a unique identification (Uuid) and save it in the device's SharedPreferences and use this Uuid to identify it.
@alexmaycon I would not recommend doing that, since once the user deletes the app and reinstall it again you will get a different uuid which it isn't the same one the user had perviously.
@alexmaycon I would not recommend doing that, since once the user deletes the app and reinstall it again you will get a different uuid which it isn't the same one the user had perviously.
I understand, but in my case this is not a problem, the function is just to identify the device after the user logs into the app.
How are we achieving getting uniqueId, Uuid generation doesn't solve our problem
hi, i got this issue too (androidId = null)
trying downgrade with the version 3.2.4, and the androidId comeback. is there any solutions with latest version (^4.0.0) to achieve this androidId??
How are we achieving getting uniqueId, Uuid generation doesn't solve our problem
https://developer.android.com/training/articles/user-data-ids
Same here! UUID is not an ideal solution.
Changed to using advertising ID. (Android only) It's not perfect, but ... (AD ID -> Hashing)
device:xiaomi11 androidId = null
the same device , old project is ok, new project get the deviceid is null
使用^3.2.4版本,^ 4.0.0已经无法获取了,源码中已经删除了获取id的代码
FYI there is a new plugin for getting the Android ID 🙂 https://pub.dev/packages/android_id
@nohli nice work buddy!
Why hasn't this been removed from the interface or marked as deprecated? It's really confusing that this method doesn't work on the newest version of the package.
FYI there is a new plugin for getting the Android ID 🙂 https://pub.dev/packages/android_id
Hi, thank you for this. Does it comply with Google Play's policies? I see it relies on Settings.Secure.ANDROID_ID
@jmgeffroy I believe it does, read carefully this section Google Play
@jmgeffroy I believe it does, read carefully this section Google Play
On that page, when collapsing Persistent identifiers, including Android ID
, it says
Use for non-advertising purposes You can use persistent identifiers as long as you have a privacy policy and handle the data in accordance with the Developer Distribution Agreement and all applicable privacy laws in the areas where you make your app available.
@nohli Oh dear! didn't catch that actually, I focused on this one
Apps using a persistent ID other than the advertising ID may receive a policy violation warning via the publisher site or the email address used to register the account.
Thank You 🙏🏻
@jmgeffroy I believe it does, read carefully this section Google Play
On that page, when collapsing
Persistent identifiers, including Android ID
, it says
Use for non-advertising purposes You can use persistent identifiers as long as you have a privacy policy and handle the data in accordance with the Developer Distribution Agreement and all applicable privacy laws in the areas where you make your app available.
Hi, thanks! Yes, that's right. I double-checked the policies and we can use such IDs if we declare we do and explain why. Cheers
@jmgeffroy great! If you're interested, you could open a PR in the android_id README for explaining the necessary steps when using the id.
Hi. Why device_info_plus ^3.2.4 installed with device_info_plus_platform_interface 2.6.0, in which androidID was removed in version 2.5.0?
pubspec.lock:
device_info_plus:
dependency: "direct main"
description:
name: device_info_plus
url: "https://pub.dartlang.org"
source: hosted
version: "3.2.4"
device_info_plus_linux:
dependency: transitive
description:
name: device_info_plus_linux
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
device_info_plus_macos:
dependency: transitive
description:
name: device_info_plus_macos
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.3"
device_info_plus_platform_interface:
dependency: transitive
description:
name: device_info_plus_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.0"
device_info_plus_web:
dependency: transitive
description:
name: device_info_plus_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
device_info_plus_windows:
dependency: transitive
description:
name: device_info_plus_windows
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
@srnden because unfortunately the version was not updated as a breaking change (new major version).
You could use
dependency_overrides:
device_info_plus_platform_interface: 2.5.0
Or maybe better, don't use overrides, use the latest version and also add android_id
.
@miquelbeltran how about publishing a minor update of the platform interface, including the parameter androidId and also a major update without it?
2.7.0 would revert removing androidId 3.0.0 would add it again
Yeah, we need to be more careful, this is not the first time this happens.
The whole federated plugin architecture is a mess, and I am one more mess like this to refactor everything into plain old plugins.
I'll take care of reverting the change.
The reverted code has been published: https://github.com/fluttercommunity/plus_plugins/pull/1020
I think you guys may need this to get device id in Android:
I think you guys may need this to get device id in Android:
ALERT: Seems like this package is not being maintained anymore.
Platform
Android 11
Plugin
device_info_plus
Version
4.0.0
Flutter SDK
2.10.3
Steps to reproduce
null
Code Sample
Logs
Flutter Doctor