Web App not working on Android

Discuss PC Developer and Web Developer projects and features here.
simisv
Posts: 20
http://meble-kuchenne.info.pl
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 4 times
Been thanked: 1 time

Re: Web App not working on Android

Post by simisv »

No matter what I do changing settings and installing different web browsers still no data is sent from my phone .
There are people using webapps that really work on android phones ?

simisv
Posts: 20
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 4 times
Been thanked: 1 time

Re: Web App not working on Android

Post by simisv »

I have an update
If I type the command in the address bar of Chrome, 192.168.0.244:8080/aoff , a pop up window appears telling me that this address doesn't support a secure connection with HTTPS and it will give me two options, Go Back or Continue.
If I choose Continue then the command is being sent and the page will display the answer sent from ESP32.
This conclude that the communication between phone ( Chrome browser) and ESP32 are working. The problem must be in the WebApp code and I have no idea where.
Thanks
Attachments
Screenshot_2026-01-03-18-51-37-58_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
Screenshot_2026-01-03-18-51-37-58_40deb401b9ffe8e1df2f1cc5ba480b12.jpg (35.31 KiB) Viewed 65 times
Screenshot_2026-01-03-18-52-06-85_40deb401b9ffe8e1df2f1cc5ba480b12.jpg
Screenshot_2026-01-03-18-52-06-85_40deb401b9ffe8e1df2f1cc5ba480b12.jpg (9.6 KiB) Viewed 65 times

simisv
Posts: 20
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 4 times
Been thanked: 1 time

Re: Web App not working on Android

Post by simisv »

Hi
Just tried TrebEdid html editor from Google Play.
Running the page from this app all commands are working ok .
TrebEdit is the only app so far that can run the WebApp without problems.
Still don't know how to solve the web browser issues.
Thanks

chipfryer27
Valued Contributor
Posts: 1800
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 403 times
Been thanked: 619 times

Re: Web App not working on Android

Post by chipfryer27 »

Hi

Most browsers now have HTTPS as default, and offhand I think there is a way to construct your request to use insecure, but I need to go look at previous projects to refresh myself.

Glad to hear you are progressing though.

Regards

chipfryer27
Valued Contributor
Posts: 1800
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 403 times
Been thanked: 619 times

Re: Web App not working on Android

Post by chipfryer27 »

Hi

From memory I think Chrome has a setting under Privacy/security, well somewhere, that tells it to allow http:

As I am in the pub enjoying well needed beer my memory might not be reliable :)

Regards

simisv
Posts: 20
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 4 times
Been thanked: 1 time

Re: Web App not working on Android

Post by simisv »

Hi
I think Chrome is a lost cause, for now at least.
I did a fresh install of Samsung Web Browser, I changed the default web browser inside phone settings for main apps , saved the webapp html file on google drive and set the file to be available offline, then created a shortcut to home screen and next to it a shortcut for Samsung browser app .
Unfortunately when I open the file , will display the web page and doesn't send any data , then I click the 3 dots on the right corner and select "Open with" = Samsung browser and Shock.... everything works !!! And Samsung browser can access the file next time when I open it. Next time just open the Samsung browser and the WebApp will be open by default.
Finally I found out how to solve it.
I don't know if there's a simpler solution.
Thanks guys for support.
Happy new year!!!!!!!!

chipfryer27
Valued Contributor
Posts: 1800
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 403 times
Been thanked: 619 times

Re: Web App not working on Android

Post by chipfryer27 »

Hi

Happy New Year to you too (and everyone else).

Glad to hear you have it working but there must be an easier way than that. When I get a chance I'm going to create an "app" to interact with something on my server and see what happens.

Regards

Post Reply