Capture: UDID & Apple ID
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Capture: UDID & Apple ID
Is there a way to capture/display a user's device UDID and/or their Apple ID from within a LiveCode iOS app?
Thanks so much.
-Tester2
Thanks so much.
-Tester2
Re: Capture: UDID & Apple ID
Hi,
There might be a way to retrieve the UDID, but Apple doesn't accept apps that do this. You can only ask the user for an Apple ID.
Kind regards,
Mark
There might be a way to retrieve the UDID, but Apple doesn't accept apps that do this. You can only ask the user for an Apple ID.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Capture: UDID & Apple ID
Hey Mark,
I found the "iphoneSystemIdentifier()" handler that actually returns the device UDID properly.
Are you saying that if I use this in my app then it will not get approved?
Thanks.
-Tester2
I found the "iphoneSystemIdentifier()" handler that actually returns the device UDID properly.
Are you saying that if I use this in my app then it will not get approved?
Thanks.
-Tester2
Re: Capture: UDID & Apple ID
Hi,
Currently, I don't know the exact answer to this because I haven't used this function on a device recently. If RunRev did this the right way, the function should now return a string that is unique to both the device and the app, i.e. it shouldn't be returning the old UDID anymore or a new function should have been added to comply with Apple's new rules. You'd better just give this a try, run iphoneSystemIdentifier() on a device and see what it returns. If it returns something different from the UDID, then it is probably alright but if it really still returns the UDID then Apple won't approve your app.
Kind regards,
Mark
Currently, I don't know the exact answer to this because I haven't used this function on a device recently. If RunRev did this the right way, the function should now return a string that is unique to both the device and the app, i.e. it shouldn't be returning the old UDID anymore or a new function should have been added to comply with Apple's new rules. You'd better just give this a try, run iphoneSystemIdentifier() on a device and see what it returns. If it returns something different from the UDID, then it is probably alright but if it really still returns the UDID then Apple won't approve your app.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Capture: UDID & Apple ID
I tried this - iphoneSystemIdentifier() - and it DOES return the exact device UDID
You had mentioned the Apple ID. Is that something that I can trap for in the background or do I have to ask the user to type it in?

You had mentioned the Apple ID. Is that something that I can trap for in the background or do I have to ask the user to type it in?
Re: Capture: UDID & Apple ID
Any idea of a unique identifier that I can trap for??
Thanks.
-M
Thanks.
-M
Re: Capture: UDID & Apple ID
Hi,
What is the purpose of the ID?
Best,
Mark
What is the purpose of the ID?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Capture: UDID & Apple ID
I need something that will be unique to each device. I am having the user submit a form, and they can only do this submission once.
So I need to check what their device is to make sure they are not submitting multiple times.
Thanks.
So I need to check what their device is to make sure they are not submitting multiple times.
Thanks.
Re: Capture: UDID & Apple ID
I've made a unique identifier by running a handler like this the first time an app is launched:
You can then save this to a file the first time the app is run.
Code: Select all
command makeUniqueID
put the milliseconds into tUniqueID --Grab a POSIX timestamp
wait random(50) milliseconds -- wait from 0-50 random msecs
put the milliseconds & tUniqueID into tUniqueID --grab another POSIX timestamp and concat the two of them
end makeUniqueID -- tUniqueID will be unique unless 1) two users launch the app for the first time at precicesly the same time, AND 2) the random # is the same for both users
Re: Capture: UDID & Apple ID
CALL-151,
This works great, but the user could still delete/reinstall the app and then get a new identifier.
Any other ideas? :/
Thanks so much for all your guys' help!
This works great, but the user could still delete/reinstall the app and then get a new identifier.
Any other ideas? :/
Thanks so much for all your guys' help!
Re: Capture: UDID & Apple ID
Hi,
Again, what would be the purpose of a UDID? Probably, what you want is simply not allowed by apple. No go. Nada.
As I suggested, you should try to tie the ID to the person rather than the device.
Kind regards,
Mark
Again, what would be the purpose of a UDID? Probably, what you want is simply not allowed by apple. No go. Nada.
As I suggested, you should try to tie the ID to the person rather than the device.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Capture: UDID & Apple ID
Mark,
Yes, I've realized that a UDID cannot be used (legally) and also that just a device ID would not solve my issue.
Do you have a way or an idea of what to use for an ID attached to the user? Maybe an Apple ID or something?
Thanks.
Yes, I've realized that a UDID cannot be used (legally) and also that just a device ID would not solve my issue.
Do you have a way or an idea of what to use for an ID attached to the user? Maybe an Apple ID or something?
Thanks.
Re: Capture: UDID & Apple ID
Hi,
Make a website where people can create an account. Make your app support that website. Make sure it is a really cool an smart app, or Apple will reject it for being "solely a marketing app".
Why don't you tell the purpose of all this? Is it a secret?
Kind regards,
Mark
Make a website where people can create an account. Make your app support that website. Make sure it is a really cool an smart app, or Apple will reject it for being "solely a marketing app".
Why don't you tell the purpose of all this? Is it a secret?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Capture: UDID & Apple ID
Mark,
Sorry; I didn't mean for it to be secretive
Our app is a training app.
Upon training completion, there is one card where the user can submit their contact info (entered into fields, they press a button and then it goes out and is handled via PHP pages).
They then receive an email with a coupon (as a sort of congratulations).
We do not want a user to be able to enter fake data and receive multiple coupons.
So I was looking for a way to trap whom the user is.
If I tell them to just create an account on the website then they can use fake data on there as well.
***********
SIDE NOTE: I read in the App Store Review Guidelines that "Apps that require users to share personal information, such as email address and date of birth, in order to function will be rejected". Does this mean we cannot ask a user to provide us their name and email?
Sorry; I didn't mean for it to be secretive

Our app is a training app.
Upon training completion, there is one card where the user can submit their contact info (entered into fields, they press a button and then it goes out and is handled via PHP pages).
They then receive an email with a coupon (as a sort of congratulations).
We do not want a user to be able to enter fake data and receive multiple coupons.
So I was looking for a way to trap whom the user is.
If I tell them to just create an account on the website then they can use fake data on there as well.
***********
SIDE NOTE: I read in the App Store Review Guidelines that "Apps that require users to share personal information, such as email address and date of birth, in order to function will be rejected". Does this mean we cannot ask a user to provide us their name and email?
Re: Capture: UDID & Apple ID
Hi,
Attach a code to the coupon, based on user's e-mail address and the account's ID number. This way, you make sure that each coupon can only be used for one particular account. If you allow people to download a statement of accomplishment at the end of the training, you take away the incentive to create multiple accounts, because if people use multiple accounts for their training, they won't get the statement.
You can't do much more than that, because people can have multiple devices, do trainings multiple times and get multiple coupons and certificates etc. Oh, and people can have multiple Apple ID's as well
You can ask people to log in with a user name and password, but you can't ask them to create a new account. You´d better rely on the guidelines than on me though.
Kind regards,
Mark
Attach a code to the coupon, based on user's e-mail address and the account's ID number. This way, you make sure that each coupon can only be used for one particular account. If you allow people to download a statement of accomplishment at the end of the training, you take away the incentive to create multiple accounts, because if people use multiple accounts for their training, they won't get the statement.
You can't do much more than that, because people can have multiple devices, do trainings multiple times and get multiple coupons and certificates etc. Oh, and people can have multiple Apple ID's as well

You can ask people to log in with a user name and password, but you can't ask them to create a new account. You´d better rely on the guidelines than on me though.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode