emilk / eframe_template

The easy way to make a Rust app with a GUI
Apache License 2.0
817 stars 180 forks source link

eframe_template does not render on Chrome for Android #131

Closed rustingcode closed 6 months ago

rustingcode commented 6 months ago

Running the unmodified eframe_template example using trunk, the following behavior is observed while viewing the app on Chrome for Android (tested with Chrome 124 on a Samsung mobile phone running Android 11):

Note that when testing with Firefox or Opera browsers on the same device, the entire app content is rendered as expected.

In addition, when testing with either desktop Chrome or desktop Firefox browsers on Linux OS, the entire app content is rendered as expected.

rustingcode commented 6 months ago

Issue resolved.

If you run into this problem, clear "Site settings" in the Chrome browser.

From the Chrome menu, go to: Clear browsing data -> More options, then clear "Site settings" and reload to correct the app rendering issue.

I do not know what Chrome stores in site settings that triggers this issue.

Note: the same behavior was also observed testing the egui web demo on Chrome for Android prior to discovering this solution. Clearing the site settings resolves the rendering problem for both eframe_template and the egui web demo app.