There is no public API to get the serial number. That would be a massive privacy vulnerability.
If your point-of-sale iPad devices are managed, then maybe you could push down an app-readable setting or file with each device’s own serial number. (But I’m no MDM expert.) Or worst case, you could manually provision each device by copy-and-paste from the Settings > General > About screen into your app. Hopefully this would satisfy the legal requirement.
Topic:
Programming Languages
SubTopic:
Swift
Tags: