PhilipsHue / PhilipsHueSDK-iOS-OSX

The Software Development Kit for Philips Hue on iOS and OS X (beta)
579 stars 169 forks source link

Bridge Link Process blocked by ATS #117

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

I am not able to link with the bridge because after calling:

// Start search self.phBridgeSearch = [[PHBridgeSearching alloc] initWithUpnpSearch:YES andPortalSearch:YES andIpAdressSearch:YES]; [self.phBridgeSearch startSearchWithCompletionHandler:^(NSDictionary *bridgesFound) { ... }];

I got this error in the XCode console: "App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file."

and, even if I am able to get the bridge...

[self.dependencies.philipsSDKUseCase.phHueSDK startPushlinkAuthentication]

is not working because neither PUSHLINK_LOCAL_AUTHENTICATION_SUCCESS_NOTIFICATION nor PUSHLINK_LOCAL_AUTHENTICATION_FAILED_NOTIFICATION notifications are triggered unless AllowsArbitraryLoads has been set to YES.

Has anyone the same problem with ATS configuration? Am I missing something?

Thanks, David