As the title says it is impossible to deploy the app as “web app” on android or IOS. I already searched for the error online and the team knows the bug ("Add to Homescreen" on iOS Loads a Blank Page · Issue #7569 · streamlit/streamlit · GitHub) but it seems that after years it hasn’t been solved.
When you go (with any streamlit app) to chrome or some browser on Android and click the “add to homescreen” button in chrome options it “downloads” the webapp so that you can access easily like a normal app in one tap, as a web app should work. But when you try to open the app it loads in loop. The error seems caused by the fact that the app redirects to “genericapplink.streamlit.app/-/build/” and creates a loading loop.
It appears as a simple error but haven’t found a solution yet.