1

Our app allows the users to do a thing once, and only once. Some data is send to the server and the user gets something in return. However, the user can just reinstall the app in order to use this function again.

How do you prevent this from happen? Since "[[UIDevice currentDevice] uniqueIdentifier]" is deprecated and might cause rejection???, what is the best way to solve this?

Thanks in advance

BlackMouse
  • 4,442
  • 6
  • 38
  • 65
  • possible duplicate of [What is a long-term method I can use to uniquely identify an iOS device?](http://stackoverflow.com/questions/10319275/what-is-a-long-term-method-i-can-use-to-uniquely-identify-an-ios-device) – rishi Jun 12 '12 at 12:57

3 Answers3

2

You could use

OpenUDID

#include "OpenUDID.h"
NSString* openUDID = [OpenUDID value];

Get it from here Link to repository

Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56
0

try this

#include "OpenUDID.h"
NSString* openUDID = [OpenUDID value];
iArezki
  • 1,273
  • 2
  • 17
  • 29
0

By Using SecureUDID also your problem will solved.SecureUDID is one kind of mechanism and it takes domine name and key as the input. It is more secure and 100% unique. By using this logic if user restart the device or reinstall the application also the UDID never gets changed.

Ganesh
  • 524
  • 1
  • 4
  • 16