S
S
Slavik122020-05-10 16:27:00
Android
Slavik12, 2020-05-10 16:27:00

Why is Android not sending http request to esp8266?

I have an application on the phone in which I click on a button and an http request is sent to esp8266 and it accepts it, everything is fine. But if I put this application on another phone, then all requests are not sent. And I see that this phone is connected to esp8266, it allocates a poppy address to it, in this regard it's normal, but it doesn't send a request. What could be the problem? Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Slavik12, 2020-05-16
@Slavik12

streletzcoder.ru/rabotaem-s-obychnym-http-v-androi...

S
S-trace, 2020-05-10
@S-trace

The problem may be that on android 9+ (and sometimes 8+) it is forbidden to use http by default. It is treated by setting the cleartextTrafficPermitted="true" parameter in the manifest - https://stackoverflow.com/questions/45940861/andro...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question