fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.56k stars 946 forks source link

[device_info_plus] Add specifications when property becomes null #784

Closed ryuujo1573 closed 2 years ago

ryuujo1573 commented 2 years ago

Hi, I was confused of the property

// android_device_info.dart
...
final String? androidId;

which appears as a nullable.

Is there any cases that this is null? In my case, I need a stable and polite way to distinct each among similar devices with same model and so on.

Thank you for your time. 😍

ryuujo1573 commented 2 years ago

Also, when would the followings be false? Is there any system permission issue about this?

Thank you.

moodstubos commented 2 years ago

I have the same question.

In my case I need androidInfo.version.sdkInt which comes directly from Build.VERSION.SDK_INT (see MethodCallHandlerImpl.java)

How can this value be null?

This does not make sense for me.

Scienticious commented 2 years ago

Hi, @mhadaily would you please mention is this a valid Issue? So I Can try to fix this issue and raise a PR. Thanks

mhadaily commented 2 years ago

@Scienticious go for it

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

ryuujo1573 commented 2 years ago

Any progress? Thanks ;>

nohli commented 2 years ago

FYI androidId was removed from the plugin device_info_plus, so there is a new separate plugin for getting the Android ID 🙂 https://pub.dev/packages/android_id