Page 1 of 1

mobileBuildInfo() not working?

Posted: Sat Jul 14, 2012 6:36 am
by genie
I need to get UDID of the device, and I found out about mobileBuildInfo() from the Dictionary...so I tried it....

Code: Select all

on mouseUp
   put "DEVICE INFORMATION" into field "info"
   put return & "board: " & mobileBuildInfo("BOARD") after field "info"
   put return & "bootloader: " & mobileBuildInfo("BOOTLOADER") after field "info"
   put return & "brand: " & mobileBuildInfo("BRAND") after field "info"
   put return & "cpu1: " & mobileBuildInfo("CPU_ABI") after field "info"
   put return & "cpu2: " & mobileBuildInfo("CPU_ABI2") after field "info"
   put return & "device: " & mobileBuildInfo("DEVICE") after field "info"
   put return & "display: " & mobileBuildInfo("DISPLAY") after field "info"
   put return & "fingerprint: " & mobileBuildInfo("FINGERPRINT") after field "info"
   put return & "hardware: " & mobileBuildInfo("HARDWARE") after field "info"
   put return & "host: " & mobileBuildInfo("HOST") after field "info"
   put return & "id: " & mobileBuildInfo("ID") after field "info"
   put return & "manufacturer: " & mobileBuildInfo("MANUFACTURER") after field "info"
   put return & "model: " & mobileBuildInfo("MODEL") after field "info"
   put return & "product: " & mobileBuildInfo("PRODUCT") after field "info"
   put return & "radio: " & mobileBuildInfo("RADIO") after field "info"
   put return & "serial: " & mobileBuildInfo("SERIAL") after field "info"
   put return & "tags: " & mobileBuildInfo("TAGS") after field "info"
   put return & "time: " & mobileBuildInfo("TIME") after field "info"
   put return & "type: " & mobileBuildInfo("TYPE") after field "info"
   put return & "user: " & mobileBuildInfo("USER") after field "info"
end mouseUp
...but it's not working. What does others do to get info from the current device?


Thanks,
genie

Re: mobileBuildInfo() not working?

Posted: Sat Jul 14, 2012 9:24 am
by dave_probertGA6e24
I too cannot persuade it to return any data on my iOS devices (iPhone and iPad).

Anyone out there used it before?

Cheers,
Dave

Re: mobileBuildInfo() not working?

Posted: Sat Jul 14, 2012 11:30 am
by LittleGreyMan
Hi,

AFAIK, it's no more allowed by Apple.

See this thread

Re: mobileBuildInfo() not working?

Posted: Mon Jul 16, 2012 11:43 pm
by jacque
I think it's a dictionary mistake. The platform icon shows it should work on iOS but it never has. The function only works on Android.

Re: mobileBuildInfo() not working?

Posted: Tue Jul 17, 2012 7:22 am
by dave_probertGA6e24
Ah Ha. Thanks Jacque - that would make a lot of sense.

It is a shame as I could really use some of the values returned - like the Phone type and a couple of other settings. Oh well - back to the drawing board.

@LittleGreyMan
Apple have not actually stopped people using the UDID - it's only deprecated - in other words it will vanish very soon (probably in iOS6). This does not mean that the Livecode function would have magically stopped working - so I think (as Jacque says) it is likely it has never worked.

Cheers,
Dave

Re: mobileBuildInfo() not working?

Posted: Thu Jul 19, 2012 4:18 am
by genie
If you need UDID as me, you can use this instead...

Code: Select all

iphoneSystemIdentifier()

Best Regards,
Genie