Qt 6.11 is out! See what's new in the release
blog
Without native code, how to get iOS and Android device id?
-
Hello,
I am trying to get device unique id of android and iOS, how to get that without native code?
I usedqDebug() << "Machine ID:" << QSysInfo::machineUniqueId();I worked well on MacOS with display "Machine ID: "B4AC7FB2-555D-5F77-BA59-D38B28F9821F"" but return "" on mobile devices.
I searched on Internet but it seems must use native code for each mobile os. -
Write a small native JNI layer for Android, Objective-C++ for iOS to access Android ID / identifierForVendor, because
QSysInfo::machineUniqueId()is not implemented on mobile platforms in Qt