Support for Unity 2019 in GameLift Realtime Client SDK

0

The Mega Frog Race demo project builds and plays on iOS and Android with an IL2CPP build and unity 2018.4 With a unity 2019.4 IL2CPP build Android still works but iOS freezes at the moment it should connect. Specifically the line that it breaks on is in RTSClient.cs _client.Connect(string.IsNullOrEmpty(ipAddr) ? DEFAULT_ENDPOINT : ipAddr, port, UDPListenPort, token);

On this page https://aws.amazon.com/gamelift/getting-started/ It does say "can be used with Unity 2018". So I'm wondering if official support for 2019 is in works?

Also, we are currently trying to figure out what exactly caused this changed behaviour between the two versions.

An earlier line in RTSClient ClientConfiguration clientConfiguration = ClientConfiguration.Default(); gives us a warning CS0618: 'ClientConfiguration.Default()' is obsolete: 'This connection is unsecured! Prefer a secured ConnectionType instead! Note, secure connection establishment requires the Realtime server to contain generated certificates. Refer to AWS Gamelift documentations for creating a certificate-enabled Script fleet.' So it could be that unsecured connections were allowed on iOS with 2018 builds but not with 2019?

已提問 3 年前檢視次數 278 次
2 個答案
0

Am going to reach out to the GameLift service team to see if they have any information/updates

Apple does block unsecured connections in iOS 9 and up so I wonder if Unity 2019 is built against a more modern version of the iOS SDK: https://developer.apple.com/documentation/security/preventing_insecure_network_connections

As Realtime can use the free GameLift TLS certs for its fleets, have you tried flipping to TLS based connections?

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南