Discussion Forums  >  WebViews and HTML for Mobile

Replies: 1    Views: 76

PortsandPilots
Aspiring developer
Profile
Posts: 19
Reg: Feb 28, 2012
Cairns
990
05/20/12 07:32 PM (13 years ago)

[deviceid] issues

How do I find my DeviceID that is passed by Buzztouch as a merge field? - it is not the serial number of the iPhone or iPad - it is not the UDID of the iPhone or iPad So what is it? Where can I find it so I can ready my server-end for the DeviceID?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
05/20/12 10:09 PM (13 years ago)
Hi, You are correct that it's not the UDID, as Apple no longer allows it. Here is the code from BT_device.m that I believe creates the deviceID: if((self = [super init])){ [BT_debugger showIt:self:[NSString stringWithFormat:@"INIT"]]; //current device instance UIDevice* device = [UIDevice currentDevice]; //create a unique-id if we have not saved one yet. NSString *tmpUUID = [BT_strings getPrefString:@"BT_UUID"]; if([tmpUUID length] > 5){ [BT_debugger showIt:self:@"Unique UUID exists."]; self.deviceId = tmpUUID; }else{ [BT_debugger showIt:self:@"Unique UUID does not exist, creating."]; CFUUIDRef uuidObject = CFUUIDCreate(kCFAllocatorDefault); NSString *uuidStr = [(NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuidObject) autorelease]; [BT_strings setPrefString:@"BT_UUID":uuidStr]; self.deviceId = uuidStr; } And the Apple reference for it: https://developer.apple.com/library/mac/#documentation/CoreFoundation/Reference/CFUUIDRef/Reference/reference.html Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.