App will be approved by App Store or not if we pass a random number as device UDID to web server in the application?

StackOverflow https://stackoverflow.com/questions/18095232

  •  23-06-2022
  •  | 
  •  

Question

Please suggest that if we have passed an random number as device UDID on web server. Then the app will be approved by App Store or not.

Was it helpful?

Solution

They will not reject it for use of a random number, it is the unique identification of specific devices they are concerned about.

I do suggest you look into identifierForVendor and advertisingIdentifier as replacements for uniqueIdentifier.

If you need to support older iOS versions, you can build against a modern SDK, set your deployment version to the oldest version you support and check for the existence of these methods like so:

if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)])
{
   // Use the method here
}
else
{
   // Do something different for older iOS versions.
}

OTHER TIPS

It will not be rejected on that basis, it will get rejected if you use uniqueIdentifier of the device.

Although if you trying to use uniqueIdentifier, it will not pass validation while submitting to AppStore.

Your app will not be rejected if you use random number as UDID, but it is not correct way to set random number as unique device id,because am number is generate repeatedly in random number generating, so these numbers are not unique.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top