Closed juanitozambada closed 6 years ago
@triniwiz I was able to connect to the server. To achieve this, I had to include the following lines on the info.plist file:
@triniwiz I was able to connect to the server. To achieve this, I had to include the following lines on the info.plist file:
<key> NSAppTransportSecurity </key>
<dict>
<key> NSAllowsArbitraryLoads </key>
<true/>
</dict>
@juanitozambada I'm currently upgrading the plugin
I can't do a connection to server when the platform is IOS but on android with the same code I can get the connection.
I got the message when I add the ios platform:
platforms/ios/Pods/Socket.IO-Client-Swift/Source/WebSocket.swift:118:28: warning: when calling this function in Swift 4 or later, you must pass a '()' tuple; did you mean for the input type to be '()'? public var onConnect: ((Void) -> Void)? ^
~()