I am creating an iOS app that I need a unique identifier that has to be the same even user removes all content(reset to factory settings).
I know years ago we can get the UDID but right now we can only create an UUID which changes every time user re-install the app or reset device to factory settings.
You can use the following