Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to Enable Live Updates in USB-C Connected Android VM Build (Physical Android Device)

A topic by MAISON SATOYA created Dec 08, 2023 Views: 305 Replies: 2
Viewing posts 1 to 2
(3 edits)

Hello!

Currently, I'm encountering the following error in the Android physical device testing environment, and live updates are not functioning.

HttpGet("http://192.168.2.215:5100/init?password=&version=106&noscripts=1&config=Default&runtime=2023.11.0.157&buildDate=1702026966193.205322265625", 33)

12-08 18:17:10.901  9999 10859 I yoyo    : Exception = java.io.IOException: Cleartext HTTP traffic to 192.168.2.215 not permitted

12-08 18:17:10.901  9999 10859 I yoyo    : HttpResultString( "IOException", 404, 33 )

Things I've tried:

- Live updates function when building http://192.168.2.215:5100 on a Windows VM.

- Internet permission is granted in Android game options.

- Activated the private checkboxes for GameMaker and gm_live_server in the firewall (as referenced in past posts).

※It seems that I may need to set a flag to allow cleartext traffic, but where should I do that.

Add the attribute <android:usesCleartextTraffic="true"> to the <application> element in the AndroidManifest.xml file.

and live updates is work!!

Thank you!! 

Developer

I think you should be able to add the line to Game Options ➜ Android ➜ Permissions - Inject to Application Tag, but let me know.

Thanks for the info!

It was easier to make the change from within GameMaker!