A user, Muhammed_EKİCİ, reported that the Discourse registration window fails to open when embedded in a Flutter app using WebView, citing a console error involving ‘webcontent.js’ (which Discourse doesn’t include) and noting that the new experimental lightbox also fails to display images. sam acknowledged this is likely an unsupported-install, as Discourse doesn’t officially support WebView embeddings, but offered to consult the modern JS team. david echoed that while not officially supported, Discourse is open to compatibility fixes if they’re straightforward — he suspects the error originates from the WebView layer (possibly OS-specific, as Flutter’s webview uses platform-native engines) rather than Discourse itself, and requested a sample Flutter app to investigate further.
Hello. We use discourse! as a web view in our application coded with Flutter. Recently I noticed that the forum membership screen did not open. While doing research, I noticed something like this in the browser console (see image). Could it have something to do with this?
Also in the latest version (d405305456) the experimental new lightbox does not work. When you click on the image, the image does not appear. There’s just his steamy shape in the background.
Are you able to share an example Flutter app which has Dicscourse embedded? As Sam mentioned, it’s not strictly supported, but if there’s anything easy we can do to fix/improve compatibility then we’re generally happy to do that.
The error in your screenshot could be related, but it doesn’t look like it’s coming directly from Discourse (we don’t have a ‘webcontent.js’ file). Most likely, it’s something being injected by your WebView.
It looks like Flutter webviews are backed by different OS engines, so this might be platform-specific.