Hmm, could use ( system.getInfo( “name” ) ). It would return ‘Deans iPhone’ and is fairly unique, as UDID is being depreciated but apparently going to be replaced with something else?
Only problem is that users can change the phone name on the fly (although I have always used default and not needed to change it) causing the validation to fail, however restoring the purchase could resolve that.
Edit:
After a bit of research I think this is what ill implement something like the below:
[lua]function checkifPro()
local deviceName = ( system.getInfo( “name” ) )
local cryptoKey = “SuperSecretPassword”
local fileName = crypto.hmac( crypto.md5, deviceName, cryptoKey)
local path = system.pathForFile( “fileName”, system.DocumentsDirectory )
local file = io.open( path, “r” )
if file then
isPro = true
io.close( file )
end[/lua] [import]uid: 62706 topic_id: 30111 reply_id: 120856[/import]