I want iOS device identifier for a framework that is used in multiple vendor's apps.
I'm developing a framework to control a peripheral. The framework has to send unique information to register the device with the peripheral. My naive idea was to use IdentifierForVendor. But this API provides the device identifier for the same vendor's apps, not the framework. (The framework will be used by multiple vendors.)
Is there a usable device identifier for the framework, regardless of app vendor? Please tell me any solution.
Is there a usable device identifier for the framework, regardless of app vendor?
No.
One goal of the iOS sandbox is to prevent unmediated IPC between apps from different teams [1]. Creating the identifier you’re looking for would require such IPC, and that runs counter to this goal.
Normally I might suggest filing an enhancement request for such a feature, and you’re totally free to do that, of course. However, I very much doubt that it’ll get traction because of this reason.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] This is, for example, why all the apps from your team can share data via an app group container, but you can’t share that with apps from other teams.