Skip to content

feat(device_info_plus): Add User Device Name in Android (PR #3437)#3456

Merged
miquelbeltran merged 7 commits intofluttercommunity:mainfrom
FaizanUllahDev:3437
Feb 4, 2025
Merged

feat(device_info_plus): Add User Device Name in Android (PR #3437)#3456
miquelbeltran merged 7 commits intofluttercommunity:mainfrom
FaizanUllahDev:3437

Conversation

@FaizanUllahDev
Copy link
Copy Markdown
Contributor

@FaizanUllahDev FaizanUllahDev commented Feb 4, 2025

Description

This PR updates the functionality of the NAME property to now include and send the customer's device name. This enhancement ensures that the application can capture and utilize the user device name for better identification, personalization, and debugging. Prior to this change, the NAME property did not include device-specific details. This update significantly improves logging, user tracking, and system behavior analysis.

Related Issues

In the current package, the user is unable to obtain the Android user's custom device name

e.g.

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@miquelbeltran miquelbeltran merged commit 8c38a31 into fluttercommunity:main Feb 4, 2025
@miquelbeltran
Copy link
Copy Markdown
Member

Thanks!


/// The name of the device.
/// https://developer.android.com/reference/android/provider/Settings.Global#DEVICE_NAME
final String name;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could use a note that name is only available on Android API level 25+

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants