Unknown url for the Android build

Hello, I have a problem with url in build for Android. In build for Windows and Linux, msg.url () returns the correct url, on Android returns unknown in this case, which violates the logic of the game. Below I have demonstrated clearly by displaying msg.url () in the text gui.

Could this be a timing issue? Are you printing the URL before it has loaded or something like that? What does the URL refer to and when do you print it on screen?

the script is inside the factory, when I create I pass the msg.url() in gui. Also I tried to pass in a method on_message in gui sender result the same.

In the Android example, did you bundle the game before running it? When you bundle the game (i.e. getting it ready to ship), the ability to convert URLs (and hashes) to their originating strings is turned off to save resources. I assume you base your game logic on the string values, you need to base it on the hash values instead for it to work. See Examples in the msg.url docs.

2 Likes

Thank you for your help, that seems to make sense. I’ll try.