mobileBuildInfo() not working?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

mobileBuildInfo() not working?

Post by genie » Sat Jul 14, 2012 6:36 am

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

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: mobileBuildInfo() not working?

Post by dave_probertGA6e24 » Sat Jul 14, 2012 9:24 am

I too cannot persuade it to return any data on my iOS devices (iPhone and iPad).

Anyone out there used it before?

Cheers,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

LittleGreyMan
Posts: 49
Joined: Sat Jun 16, 2012 7:57 pm

Re: mobileBuildInfo() not working?

Post by LittleGreyMan » Sat Jul 14, 2012 11:30 am

Hi,

AFAIK, it's no more allowed by Apple.

See this thread
Best regards,

Didier

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mobileBuildInfo() not working?

Post by jacque » Mon Jul 16, 2012 11:43 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dave_probertGA6e24
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 328
Joined: Mon Dec 05, 2011 5:34 pm
Contact:

Re: mobileBuildInfo() not working?

Post by dave_probertGA6e24 » Tue Jul 17, 2012 7:22 am

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
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: mobileBuildInfo() not working?

Post by genie » Thu Jul 19, 2012 4:18 am

If you need UDID as me, you can use this instead...

Code: Select all

iphoneSystemIdentifier()

Best Regards,
Genie

Post Reply