There is no device_id
value, maybe you mean identifier
?
That value returns identifierForVendor
identifierForVendor | Apple Developer Documentation
While the app is in development (installed from Xcode), the value can change on app install/uninstalls, if published on the App Store then the value should remain the same.