if (port == 443)
{
+
+ #if !TARGET_IPHONE_SIMULATOR
+
+ // Backgrounding doesn't seem to be supported on the simulator yet
+
[sock performBlock:^{
if ([sock enableBackgroundingOnSocketWithCaveat])
DDLogInfo(@"Enabled backgrounding on socket");
DDLogWarn(@"Enabling backgrounding failed!");
}];
+ #endif
+
// Configure SSL/TLS settings
NSMutableDictionary *settings = [NSMutableDictionary dictionaryWithCapacity:3];