Question

Ok, I'll be brief, but some setup is required for this question.

My iOS app allows users to submit requests, which are then displayed via a Table View. They fill out several text fields, and the text from those are passed along to a PHP script, which then adds entries to an XML. I realize that some users could put phony entries in or inappropriate material. What would be the best way to create a unique identifier based off of device, and attach it to the post? Then, if inappropriate material appears, I can find the ID, and then use something in the script to disallow posts from users whose ID is in the database?

Just wondering how to set up the PHP and create an ID for the device.

Thanks

Was it helpful?

Solution

You would need to use one of NSUUID, CFUUIDRef or UIDevice -unique​Identifier / -identifier​For​Vendor. Check out this article for more: http://nshipster.com/uuid-udid-unique-identifier/

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