Skip to content

[Feature]: Collaboration service should support mobileView and mobileEdit WOPI actions for OnlyOffice/Euro-Office #3167

Closed
opencloud-eu/web
#3971

Description

@LetsDrinkSomeTea

Summary

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:

if access == "view" || access == "edit" || access == "view_comment" {

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

  1. Deploy OpenCloud with Euro-Office (or OnlyOffice) as the collaboration backend.
  2. Open a document from a mobile browser.
  3. Observe that the full desktop editor is displayed instead of the mobile-optimized UI.

Environment

  • OpenCloud: opencloudeu/opencloud-rolling:latest (version 7.3.0)
  • Document server: ghcr.io/euro-office/documentserver:latest (version 24.04)
  • WOPI actions available in discovery: view, edit, mobileView, mobileEdit

Activity

  1. micbar commented on Aug 14, 2026

    @micbar
    Member

    @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

    • Open Mobile to View
    • Open Mobile to Edit
    • Open to View
    • Open to Edit

    Our main collabora implementation has a "mode switcher" inside the app. Therefore we were not struck by this issue dierctly before.

  2. LetsDrinkSomeTea commented on Oct 21, 2026

    @LetsDrinkSomeTea
    Author

    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.

  3. guruz commented on Nov 20, 2026

    @guruz

    @LetsDrinkSomeTea What does this mean for the iOS and Android apps?

  4. LetsDrinkSomeTea commented on Nov 20, 2026

    @LetsDrinkSomeTea
    Author

    @LetsDrinkSomeTea What does this mean for the iOS and Android apps?

    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.

  5. guruz commented on Nov 20, 2026

    @guruz

    @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..)

  6. LetsDrinkSomeTea commented on Nov 20, 2026

    @LetsDrinkSomeTea
    Author

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions