We have found an issue with using the Unity SDK and having the web request type set to HttpWebRequest. When it is set to HttpWebRequest the application with crash when either Application.Quit is called or you just close the application normally.
When the request type is set to UnityWebRequest the crash will not happen.
Playfab Unity SDK Version: 2.63.190312
Unity Version: 2018.3.0f2
We need to use the HttpWebRequest type for our server that we are hosting via Playfab container so we would like to resolve the crashing issues with it. When using the UnityWebRequest type none of the Playfab API calls work. See this related issue (https://community.playfab.com/questions/26901/playfab-multiplayer-servers-connection-issues.html)
I am not sure if it is related but we do get this error message from Playfab in the Unity Editor:
ThreadAbortException System.Threading.Thread.Sleep (System.Int32 millisecondsTimeout) (at <ac823e2bb42b41bda67924a45a0173c3>:0) PlayFab.Internal.PlayFabWebRequest.WorkerThreadMainLoop () (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:287) UnityEngine.Debug:LogException(Exception) PlayFab.Internal.PlayFabWebRequest:WorkerThreadMainLoop() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:293) System.Threading.ThreadHelper:ThreadStart()