• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

no response from server on UWP app

RizbIT

Member
Trying to port an app from Android to UWP.

On Android it works fine but on the UWP compiled which opens up on my pc desktop upon completion of compile, when i use http_post_string to get the user to login the app just hangs
I get either no response from the server of maybe no requests are sent from the app?

Anyone know why.

The UWP project seems to compile ok and the rest of the game seems to work just issue with the http connectivitiy.
 
Last edited:

Pfap

Member
I remember I had something working on pc once, but it wouldn't run on ios. I eventually discovered that it had to do with how the platform dealt with an "empty" response from the server. On pc an empty response returned -1, but on ios it was silent. My code was set up that if the response failed Gamemaker was to try again, but ios responses never failed by what I defined as failing. I solved the issue by running my app in xcode and checking the output. I'm not sure how UWP works though.
 

RizbIT

Member
i get what you are saying

i added a show_message() to the http async event to capture and show any response the problem is no response is received in that event at all
 

Pfap

Member
Maybe try making a new room with a button that when pressed sends an http request to your server. Also check your servers error log, maybe your server is not receiving the request?

Here is the async code I'm using:

Code:
if ds_map_find_value(async_load, "id") == server_get{

show_debug_message("server_get");

show_debug_message(async_load[? "status"]);

var status = ds_map_find_value(async_load, "status");

if status == 0
{
path = ds_map_find_value(async_load, "result");
}
else{
 //poll if it failed
 alarm[0] = 30;

}
 

RizbIT

Member
it has to be a bug i think as even if the server isnt getting a response what can i do about that? the android and windows desktop version commuincate with the same server fine just not the uwp one...
 

RizbIT

Member
Seriously 8 months ago?

Then admin of gms arent taking that very seriously.

How can not being to do any online communication on a UWP app be a trivual issue? This is prob an emergency fix issue.
I really hope they fix this soon

So over these months have other developers not published GM made UWP apps? as id say ALL games on any platform need to communicate with servers / php files etc..
 
Top