Hi everyone,
i have two questions and don´t get it work.
1.) What´s the best way to include IOs5+ with the device UUID?
This code looks not working (deviceUuid = dev.uniqueIdentifier;), as i always get an error. I want to include all devices from version ios 5+
UIDevice *dev = [UIDevice currentDevice];
NSString *deviceUuid;
if ([dev respondsToSelector:@selector(uniqueIdentifier)])
deviceUuid = dev.uniqueIdentifier;
else {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
id uuid = [defaults objectForKey:@"deviceUuid"];
if (uuid)
deviceUuid = (NSString *)uuid;
else {
CFStringRef cfUuid = CFUUIDCreateString(NULL, CFUUIDCreate(NULL));
deviceUuid = (NSString *)cfUuid;
CFRelease(cfUuid);
[defaults setObject:deviceUuid forKey:@"deviceUuid"];
}
}
2.) How is it possible to send around 10000 messages in one time?
Hope to get an fast answer.
Best
Sven