I am using a Macbook pro M1 and Xojo 2023r4
Just for the pourpose of this post in order to simplify the explanation of my problem, I had created a middleware in order to work as a web service communication software in a Server to serve an Android App.
To debug the Android App I run the middleware in my Mac as Localhost in the port 8080
I also wrote a Desktop App as a testing App of the middleware.
And I simplified the code to minimun for this communication testing and example.
The code of the middleware for the Web Service includes:
The handleURL event:
A web service function:
On the testing Desktop App:
the method calling the web service is:
and the ContentReceived event of the URLConnection:
As is expected, when the Desktop App stops at the break, the JSON given by the Web Service as response was received fine:
I also test the middleware with a browser:
and as expected the JSON was displayed fine as above.
But from the Android App, using identical Calls as you could see bellow:
I receive the following error in the URLConnection Error Event
Quite wired is that the Call that works fine in a desktop App and the URL called in the browser works and the one in the Android App not.
Some one could tell me what I am missing ?
Thanks
9 posts - 5 participants