You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Collaboration service should support mobileView and mobileEdit WOPI actions for OnlyOffice/Euro-Office #3167
The collaboration service currently ignores the mobileView and mobileEdit actions from the WOPI discovery endpoint of OnlyOffice-compatible document servers (e.g. Euro-Office). As a result, mobile users always receive the desktop editor regardless of their device.
Current Behavior
In services/collaboration/pkg/helpers/discovery.go, parseWopiDiscovery() only stores three action types:
And getAppUrl() in services/collaboration/pkg/service/grpc/v0/service.go only ever selects between view and edit — never mobileView or mobileEdit.
OnlyOffice-compatible servers (including Euro-Office) have been exposing mobileView (read-only, mobile-optimized) and mobileEdit (full editing on mobile) in their WOPI discovery since document server version 7.4. These actions provide separate URLs that render a touch-optimized interface.
Euro-Office specifically has removed the Enterprise Edition license restriction on mobile editing, so mobileEdit is fully functional — but OpenCloud never uses it.
Expected Behavior
parseWopiDiscovery() should also parse and store mobileView and mobileEdit actions from the discovery XML.
getAppUrl() (or the OpenInApp handler) should detect mobile User-Agents from the incoming request and select the appropriate mobile action URL instead of edit.
Why Collabora Works But OnlyOffice/Euro-Office Does Not
Collabora uses a single URL per file type that auto-adapts its interface based on the browser's User-Agent. No separate action URL is needed.
OnlyOffice/Euro-Office uses distinct action URLs for desktop (edit) and mobile (mobileView/mobileEdit). The WOPI host is responsible for choosing the correct one — which OpenCloud currently does not do.
Steps to Reproduce
Deploy OpenCloud with Euro-Office (or OnlyOffice) as the collaboration backend.
Open a document from a mobile browser.
Observe that the full desktop editor is displayed instead of the mobile-optimized UI.
The server side landed with #3635 in v8.1.0 (COLLABORATION_WOPI_ENABLE_MOBILE + COLLABORATION_APP_PRODUCT_EDITION), so #3292 is superseded and I'll close it.
I tested it on 8.1.0 with Euro-Office by calling POST /app/open?...&mobile=true by hand: the returned app_url carries mobile=1, and the mobile view works on a phone for both viewing and editing (edition ee).
The missing piece is web: web-app-external never sends mobile to /app/open, neither in v8.1.0 nor in the upcoming 8.2.0. I opened opencloud-eu/web#3971, which sends mobile=true on mobile sized screens (useIsMobile). The server ignores it for other apps, so nothing changes there.
@LetsDrinkSomeTea Does this mean I can just add &mobile=true if running on iPhone ? :)
Related opencloud-eu/ios#74 which I'm looking at fixing. I'll add it, even though I don't have any test instance..
(iPhone app embeds more directly vs Android app which embeds the whole OpenCloud web.. at least that is what I saw for Collabora..)
Activity
feat(collaboration): support mobileView and mobileEdit WOPI actions
micbar commentedon Aug 14, 2026
@LetsDrinkSomeTea Thanks for bringing this up.
@tbsbdr @kulmann We have a "only one open action per file type" implementation in web currently. Correct me if that has changed.
One idea would be, to expose the view modes in the web file actions like
Our main collabora implementation has a "mode switcher" inside the app. Therefore we were not struck by this issue dierctly before.
LetsDrinkSomeTea commentedon Oct 21, 2026
The server side landed with #3635 in v8.1.0 (COLLABORATION_WOPI_ENABLE_MOBILE + COLLABORATION_APP_PRODUCT_EDITION), so #3292 is superseded and I'll close it.
I tested it on 8.1.0 with Euro-Office by calling POST /app/open?...&mobile=true by hand: the returned app_url carries mobile=1, and the mobile view works on a phone for both viewing and editing (edition ee).
The missing piece is web: web-app-external never sends mobile to /app/open, neither in v8.1.0 nor in the upcoming 8.2.0. I opened opencloud-eu/web#3971, which sends mobile=true on mobile sized screens (useIsMobile). The server ignores it for other apps, so nothing changes there.
guruz commentedon Nov 20, 2026
@LetsDrinkSomeTea What does this mean for the iOS and Android apps?
LetsDrinkSomeTea commentedon Nov 20, 2026
You can just use the "Open with -> Euro-Office" and than the browser will open with the App.
The other option is to just use your Mobiles native Apps.
Nothing really changed here in comparison to Collabora.
guruz commentedon Nov 20, 2026
@LetsDrinkSomeTea Does this mean I can just add &mobile=true if running on iPhone ? :)
Related opencloud-eu/ios#74 which I'm looking at fixing. I'll add it, even though I don't have any test instance..
(iPhone app embeds more directly vs Android app which embeds the whole OpenCloud web.. at least that is what I saw for Collabora..)
LetsDrinkSomeTea commentedon Nov 20, 2026
@guruz I think the answer is yes. Although I also can't test it...
The web frontend does exactly that when opening a document. Calling /app/open... &mobile=true/false