We want to use discourse as a webview in a part of our native application, but we are having a problem with js. Webview application has js enabled but the forum cannot be displayed properly. How can i solve this problem. thanks.
Edit: I added User agent for Google login work. When I removed it, the forum was displayed properly. But I still need google sso
Discourse serves the desktop view (shown in your screenshot) unless it detects a mobile user through the User-Agent.
You can append ?mobile_view=1 to your url to force the mobile view, maybe it helps.
?mobile_view=1
url
That’s the crawler view. Does your user agent have any of these words?
rss|bot|spider|crawler|facebook|archive|wayback|ping|monitor|lighthouse
If so, Discourse will think it’s a crawler and serve the crawler view.