New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android app not showing "Open with Collabora" for all filetypes supported by Collabora CODE #3650
Comments
Android relies here on the capabilities sent by the server:
If the mimetype matches, we show the "open with collabora" menu entry. @rullzer is this something we get directly from Collabora, or is this from our RichDocuments app? |
https://collabora.server.com/hosting/discovery shows:
So here are the extensions listed… |
This seems to be hardcoded... @juliushaertl do you know if we actaully do this dynamically in the app itself? |
Is it possible to force the Android app to show the "Open with Collabora" menu option if a compatible file mimetype/file extension is detected? |
@e-alfred what do you mean with force the app? |
Yes, we currently hardcode those, but since Collabora is exposing the supported mimetypes, we should make sure to also expose those via the capabilities. We also have a separate list of mimetypes that is used to register the viewer in the files web app, so maybe the reason was to avoid having to load the data from the collabora server before the document is even opened. I'll look into if we can make this more dynamic. |
Cool, from the list by collabora we should focus on those mimetypes that are editable (name="edit") and not (name="view") as this is too much. |
@tobiasKaminsky As far as I saw the default opening mode is just view-only and by tapping the edit button it switches to edit mode? Wouldn't it be good to have the ability to open all filetypes supported by Collabora and only leaving away the edit button on those which are view-only? This would make the Nextcloud Android client far more usable if it would be able to open and view a lot more filetypes without the need to install additional apps on the client device. |
Where should this "Open with Collabora" menu entry be? I uploaded a My last-ditch workaround was making a link-share of it and opening that in my mobile-browser. That's a rather awkward solution though. |
For my setup the menu entry "Open with Collabora" is very unreliable. Somestimes it shows up for .docx, .xlsx and the likes, sometimes it's just missing. It also differs from user to user, some can work with it, others have never seen the option. I have tried 3.5.0 and 3.5.1 RC on different phones (Android 8.0 and 8.1) but no noticable change, can't establish a pattern. Deleting app caches and reinstallatin the app did not help either. |
@Bubu @bold-gman currently we show/use collabora only for this mimetypes:
We plan to extend the supported mimetypes to match the behaviour of web ui: This will be done by @juliushaertl. It needs only to be done on richdocuments app and with their new release it will work on all clients. |
@tobiasKaminsky Well, my document already should fall under the working category:
|
Hm. We are getting the mimetype from server, maybe this file is identified in a different way on server. |
That's my problem as well. Editing docx and xlsx did work yesterday, but it's gone completey for the same files today. On a friend's device the menu option never showed up for the supported file types in the first place. |
Something I found lying around on my linux distro :)
Here's the emptied file: https://cloud.bubu1.eu/s/RxbymF6JQ7CcMFi |
And now the option is back. I haven't touched anything in the android app or on the server in the last two hours since the last post. |
As discussed with @tobiasKaminsky last week, |
Ah sorry, confused the issues, this one of course needs some fixes in the android app, after nextcloud/richdocuments#456 is done. |
Android should hopefully automatically fetch and use them. |
This should be resovled via new Collabora 3.3.0 app. |
Updated to richdocuments 3.3.1, still the same behaviour for me. |
In this case, this was missing:
To further verify, you can go to https://$collabora-server/hosting/capabilities and see if "hasMobileSupport" is true. |
Nextcloud still caches the old non-existing capabilities file server-side. @tobiasKaminsky Thanks for you help debugging this. |
A little background: this was a breaking change with Collabora 4.0, and is now correctly reflected in docs. |
i was trying to fix this for well over an hour, not understanding why everyone else seemed to have it working with the hosting/capabilities fix alone (which i truly wish was better documented itself... i bet most of us were getting incomplete info from here because it's not in collabora or nextcloud docs?). |
https://nextcloud.com/collaboraonline is the place to look at :-) |
That actually links to https://icewind.nl/entry/collabora-online/ for nginx instructions. Which are now outdated it seems. |
I opened up an issue for our website. |
Actual behaviour
Using the Nextcloud Android app version 3.5.0 not all file types supported by Collabora CODE (for example *.xls, *.doc) can be opened with Collabora inside the Nextcloud app. These files also don't show the "Open with Collabora" menu item in the three-dot menu. Some filetypes like *.docx work flawlessly.
Expected behaviour
All filetypes supported by Collabora CODE should show the "Open with Collabora" menu item within the Nextcloud Android app and also open Collabora within the Nextcloud Android app.
Environment data
Android version: 7.1.1
Device model: BQ X5 Plus
Stock or customized system: Lineageos 14.1
Nextcloud app version: 3.5.0
Nextcloud server version: 15.0.4
Collabora Online (NextcloudApp): 3.2.1
CODE: 4.0.0
The text was updated successfully, but these errors were encountered: