breautek commented on issue #500: URL: https://github.com/apache/cordova/issues/500#issuecomment-2407506112
In that cause I'd recommend seeing if the problem can be reproduced in a sample project. I'd suggest including both a cordova project and nodejs project. The NodeJS project can use `http-server` package to serve a sample site with an SSE endpoint. It could also a HTML document that can showcase it working with a standard browser. The endpoint can be hittable from an android simulator or a physical device that is connected over the same local network. The cordova project can be a basic "Hello Cordova" project that uses the NodeJS server. For android, you will need to provide a network security policy to allow plaintext connections (so that you can connect to a `http` server). To do this, you'll need to put an xml file: ```xml <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="true"/> </network-security-config> ``` inside `platforms/android/app/src/main/res/xml/networkPolicy.xml` And inside `platforms/android/app/src/main/AndroidManifest.xml`, the `<application>` tag needs the following attribute: `android:networkSecurityConfig="@xml/networkPolicy"`. If a zip can be provided that demonstrates the issue in a basic project, I'll try to take a look in a reasonable timeframe. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org