作者:miya的发现王国sGA_998 | 来源:互联网 | 2023-09-15 22:42
Hello,
Some of our users experienced an issue with the ID that we retrieved via
: they have the same ID across two different devices.
We found a way to reproduce the problem: if a user uses the same Apple ID across two devices and has used iCloud to restore a backup from one device to another,
return the same string.
We are thinking about forking the library and removing the mechanism that saves and read from UserDefaults and Keychain. But before that, may I ask why this mechanism was implemented? Why not retrieve the ID always with the same mechanism using
1
| [[UIDevice currentDevice].identifierForVendor UUIDString]; |
?
PS: thanks for the lib, used it on several projects!
该提问来源于开源项目:react-native-device-info/react-native-device-info
538 should have an implementation more like #60 and thus not run into this. If you forked and implemented something like #60 or proposed a PR that did that, it could get us going in that direction
That proposed implementation would not survive app uninstall/reinstalls but I think an app that wants to do that might be better served with firebase or similar?