How can I get the deviceid of the device on which my aplication has got installed?
How can I get the device-id of the iPhone on which my application's got installed开发者_JAVA技巧 immediately after installation? Is PUSH_NOTIFICATION the answer?
Neither your app nor yourself get informed by the OS when your app is installed. You have no option to detect installation unless the user launches the app.
Here is a sample code http://www.timeister.com/2009/06/objective-c-get-iphone-device-guid/
UIDevice *device = [UIDevice currentDevice];
NSString *uniqueIdentifier = [device uniqueIdentifier];
NSLog(@"Device GUID: %@", uniqueIdentifier);
精彩评论