question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deviceName not updating when user updates device name on device

See original GitHub issue

Summary

Version 8.1.4
Affected OS iOS
OS Version 14.7

Current behavior

after changing the device name and then calling DeviceInfo.getDeviceName() I’m still getting the old value.

  1. open app (device name reports as iPhone)
  2. close app and change device name in settings to iPhone new
  3. open app and call DeviceInfo.getDeviceName()
  4. returns iPhone and not iPhone new

Expected behavior

DeviceInfo.getDeviceName() should report the current device name

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mikehardycommented, Jun 13, 2022

No workaround to suggest, please investigate using standard troubleshooting techniques / debugging tools and if there’s a problem, we can merge and release a PR really quickly

1reaction
mikehardycommented, Aug 6, 2021

Ah ha! @chrisdrackett if you post a PR removing the memoization there, can happily merge + release

tangent: oh man, the semantic release bot is golden here @schie, thank you so much for that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Computer Name does not update in PolicyServer
This issue happens because the File Encryption fails to update the DeviceName when syncing with the PolicyServer. To search the PolicyServer MMC for...
Read more >
Phone Name Not Updating In Device List On My Account.
I changed my device name in settings on my Iphone 13. I have the latest Firmware. However in my devices list on my...
Read more >
How to get Updated Device Name in Android? - Stack Overflow
I am using Build.Device to get Android device name. I went to settings and changed the device name. But Build.Device is not showing...
Read more >
JSS Not Saving New Mobile Device Name
If I use the API to rename the same device the JSS shows the new name has been uploaded correctly and both the...
Read more >
Problem changing the BLE device name. - Nordic Q&A
Ed H. Hello, The device name will become updated as soon as you have called the sd_ble_gap_device_name_set() function. So if the client reads ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found