Lars Fosdal 1792 Posted January 30, 2019 Does anyone know if there are existing libs out there that can extract this across all FMX platforms? - Current user - Device name Share this post Link to post
Sherlock 663 Posted January 30, 2019 Hmmm, user of what? On 99% of mobile devices there is only one user. Some may allow a multi user environment, but those are exotic to say the least. As for the device name, maybe this works on all platforms: https://community.idera.com/developer-tools/b/blog/posts/using-delphi-to-get-os-version-device-name-language-on-ios-android Share this post Link to post
Dave Nottage 557 Posted January 30, 2019 The DW.OSDevice.xxx units here have implementations for GetDeviceName for iOS, Android, macOS, Windows and Linux: https://github.com/DelphiWorlds/KastriFree/tree/master/Core I could add something like GetUserName - which would likely return blank for iOS and Android 2 Share this post Link to post
Lars Fosdal 1792 Posted January 30, 2019 https://developer.android.com/training/id-auth/identify Quote 3. Retrieve a built-in account from AccountManager Would this be usable to get some sort of username / identity? Perhaps there is something similar on iOS as well? Share this post Link to post