Hi
I cannot get my app to communicate with my web server when exported for UWP. But it works for iOS and Android.
The codes are below and I have enabled client capability in the app setting page.
Thank you for your help!
Did you adjust the capabilities in the “Package.appxmanifest” file? Here is how to access the Capabilities I’m referring to…
Build UWP Player via Unity
Open generated .sln file in Visual Studio
Open file “Package.appxmanifest”
Switch to “Capabilities” tab in “Package.appxmanifest”
Enable whatever Capabilities you need, e.g.: Internet (Client & Server), Internet (Client), Point of Service, Private Networks (Client & Server), Remove System, etc
Press in Mainmenu > Build > Build Solution
If you post source code, I recommend to use code-tags, makes it easier for people to read:
Peter77 and Aurimas-Cernius
Thank you very much. I have at last found out the reason which turns out be the fact that the failure is not because of Unity, but of my web host (webhxxxxxx) who has blocked my ip address. It now works fine as nice as iOS/Android. Thank you for your help which has led me to find out the real reason.