• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

iOS [SOLVED] HTTP Request Issues on iOS but not Android

S

Soulie

Guest
Anyone have an idea why HTTP requests are no longer working on iOS?

I've got a highscore leaderboard system setup, which works fine on Android and used to work on iOS, but no longer does on iOS. I'm thinking it's most likely a setting that needs to be activated or a permission on Apple's end through Xcode or the developer website, but I haven't had any luck so far. (Using GM 1.4 and Xcode 9.3 / have tried Xcode 10.1 as well)
 
S

Soulie

Guest
I managed to narrow it down to this error in Xcode: "Download Error : Unable to create request (bad url?)"

And it turns out the URL I was using to do a HTTP request picked up some whitespace in my code, but only caused an error in the iOS version.
(e.g. "https://www.example.com/games/ chamswing/etc" )

Getting rid of the whitespace in my code fixed the issue. :)
 
Last edited by a moderator:

FrostyCat

Redemption Seeker
Interesting, never thought iOS would be alone in not forgiving that.

For future reference, if you intend to have spaces in a URL, the proper way is to use + or %20 in place of an actual space character.
 
Top