开发者

How can I get the deviceid of the device on which my aplication has got installed?

开发者 https://www.devze.com 2023-01-05 21:04 出处:网络
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 info

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消