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
Can't disable opening pdf files on the mobile Nextcloud app #13563
File is being opened by default when clicked on its name even if it is indicated to not open the file format by default in the ONLYOFFICE connector settings in Nextcloud, for example PDF. We checked from our end that our connector is passing the correct data as per documentation here.
In mimetypes we are passing the default data (the checked checkbox in the connector settings), for example:
In optionalMimetypes we are passing other supported mimetypes like:
"optionalMimetypes":[
"application\/pdf",
...
Shown on PDF format example, it is being moved from one list to another when the checkbox is checked/unchecked in the connector settings. It seems that Nextcloud app is not handling these lists properly.
I'm still on Nextcloud 29, so I was able to downgrade the ONLYOFFICE app to 9.2.2.
This version doesn't support editing PDFs and therefore, if I understand correctly, is not affected by this bug.
But a fix would be very nice, so I can update the app again and use Nextcloud 30 in the future.
This problem still exists and leads to the problem that users can't open pdf-files on mobile devices when an open office server is installed at the same time. This is crucial, please fix it urgently.
Hello,
A downgrade of the OnlyOffice App as suggested in ONLYOFFICE/onlyoffice-nextcloud#1015 to 9.2.2 helps somehow.
I can now open PDFs in Libera and ODS Files open with OnlyOffice on my android phone, if I force nextcloud to use the incompatible version.
But since the OO App v9.2.2 is not compatible with Nextcloud 30+, I can not configure it anymore. Trying to reach the config page for OO in Nextcloud administration leads to an internal server error.
But if configured correctly before the downgrade, it seems to work somehow.
So seems like we have currently 3 options:
deactivate OnlyOffice App in Nextcloud
downgrade OnlyOffice App to 9.2.2 and hope it works without major issues -> office stuff via OO, PDFs can be opened without OO.
live with the fact that PDFs on android get opened via OnlyOffice regardless of settings.
Since this Issue is there for quite some time now, I'm hoping @alperozturk96 can find the problem, and finally solve it...
versions I use as of writing:
Nextcloud: 31.0.10
NC Android app: 3.34.1
OO NC App: 9.11
Greetings,
Uno
P.S.
Another maybe interesting point:
I had an older OnlyOffice Instance running until yesterday.
Before updating the OnlyOffice Instance I got the The “documentType” parameter for the config object is invalid. Please correct it. when trying to open PDFs.
As long as the Nextcloud OO App was active, I could not open PDFs on android.
(however my work cloud server without onlyoffice could open them like desired, thats why I investigated further why I had this different behaviour)
Another perhaps helpful/important point @alperozturk96
If the PDF is not downloaded in the android app (no green hook), then it gets opened via OnlyOffice
If it its present, so downloaded first, or after opening the first time, then it gets not opened via OnlyOffice but instead by the android PDF viewer
(before the mentioned updates this was actually my workaround: on direct click the documentType error. downloading PDF first and then clicking it -> normal opening)
Another perhaps helpful/important point @alperozturk96 If the PDF is not downloaded in the android app (no green hook), then it gets opened via OnlyOffice If it its present, so downloaded first, or after opening the first time, then it gets not opened via OnlyOffice but instead by the android PDF viewer
(before the mentioned updates this was actually my workaround: on direct click the documentType error. downloading PDF first and then clicking it -> normal opening)
Thanks for that. Worked, but file will need to be downloaded after each new file update.
Issue critical, but lost in 1200+ issues .. A simple toggle "Open all files with system app" is needed
@alperozturk96 Any chance that you could have a look on this issue (again)?
The issue annoys me for a very long time, because you are forced to wait for the whole OnlyOffice editor to load, when opening a PDF with an installed app would be much faster.
I would really appreciate if this problem could be fixed.
If that means that file types that OnlyOffice could open in theory (like PDF) but are currently disabled in the Nextcloud app settings, are downloaded and opened with the regular file handler, I would be happy 👍
Sorry for the late reply, I was on vacation.
I have just downloaded the APK and tried opening a PDF, and it opened in the Android PDF viewer 🥳
On the other side, if I open a DOCX/ ODT it opens in the OnlyOffice web viewer, as expected.
These are my OnlyOffice settings in Nextcloud:
So I think the behavior now matches the settings.
Thanks for your work!
Edit: I just learned about the new file action in the context menu.
Everything works as expected, except when the file is not yet downloaded and online + local editor support is there.
Why can't I directly open the file in the online editor, but have to download it (and subsequently open it in a local editor) first?
I don't care too much, but I could imagine this to be somewhat counterintuitive for other users.
Why can't I directly open the file in the online editor, but have to download it (and subsequently open it in a local editor) first?
What mimetype was this? Is this maybe within "optional mimetype"?
I can reproduce it with different file types like ppt, pptx, odt, ect.
None of these should be in the optional mimetypes list, if I understand it correctly.
Activity
AndyScherzinger commentedon Sep 13, 2024
Looping in @tobiasKaminsky @alperozturk96
retiarylime commentedon Dec 13, 2024
Also facing the same issue. Any update after 3 months?
ottsimon commentedon Dec 14, 2024
I'm still on Nextcloud 29, so I was able to downgrade the ONLYOFFICE app to 9.2.2.
This version doesn't support editing PDFs and therefore, if I understand correctly, is not affected by this bug.
But a fix would be very nice, so I can update the app again and use Nextcloud 30 in the future.
modelrailroader commentedon Sep 11, 2025
This problem still exists and leads to the problem that users can't open pdf-files on mobile devices when an open office server is installed at the same time. This is crucial, please fix it urgently.
Dieter-W commentedon Nov 6, 2025
Hi,
I run also into this problem. Is there an outlook when a fix is available
Dieter-W commentedon Nov 11, 2025
@tobiasKaminsky , @alperozturk96 could you answer my question.
On an IPhone this works, there the PDF viewer opens the file.
alperozturk96 commentedon Nov 12, 2025
@Dieter-W Hello. I need to check the issue. I didn't come across this before. I will try to reproduce it.
Unostot commentedon Nov 17, 2025
Hello,
A downgrade of the OnlyOffice App as suggested in ONLYOFFICE/onlyoffice-nextcloud#1015 to 9.2.2 helps somehow.
I can now open PDFs in Libera and ODS Files open with OnlyOffice on my android phone, if I force nextcloud to use the incompatible version.
But since the OO App v9.2.2 is not compatible with Nextcloud 30+, I can not configure it anymore. Trying to reach the config page for OO in Nextcloud administration leads to an internal server error.
But if configured correctly before the downgrade, it seems to work somehow.
So seems like we have currently 3 options:
Since this Issue is there for quite some time now, I'm hoping @alperozturk96 can find the problem, and finally solve it...
versions I use as of writing:
Nextcloud: 31.0.10
NC Android app: 3.34.1
OO NC App: 9.11
Greetings,
Uno
P.S.
Another maybe interesting point:
I had an older OnlyOffice Instance running until yesterday.
Before updating the OnlyOffice Instance I got the
The “documentType” parameter for the config object is invalid. Please correct it.when trying to open PDFs.As long as the Nextcloud OO App was active, I could not open PDFs on android.
(however my work cloud server without onlyoffice could open them like desired, thats why I investigated further why I had this different behaviour)
Unostot commentedon Nov 17, 2025
Another perhaps helpful/important point @alperozturk96
If the PDF is not downloaded in the android app (no green hook), then it gets opened via OnlyOffice
If it its present, so downloaded first, or after opening the first time, then it gets not opened via OnlyOffice but instead by the android PDF viewer
(before the mentioned updates this was actually my workaround: on direct click the documentType error. downloading PDF first and then clicking it -> normal opening)
jscti commentedon May 2, 2026
Thanks for that. Worked, but file will need to be downloaded after each new file update.
Issue critical, but lost in 1200+ issues .. A simple toggle "Open all files with system app" is needed
major-mayer commentedon Jun 20, 2026
@alperozturk96 Any chance that you could have a look on this issue (again)?
The issue annoys me for a very long time, because you are forced to wait for the whole OnlyOffice editor to load, when opening a PDF with an installed app would be much faster.
I would really appreciate if this problem could be fixed.
tobiasKaminsky commentedon Jun 25, 2026
idea:
major-mayer commentedon Jul 4, 2026
If that means that file types that OnlyOffice could open in theory (like PDF) but are currently disabled in the Nextcloud app settings, are downloaded and opened with the regular file handler, I would be happy 👍
alperozturk96 commentedon Jul 8, 2026
Once the QA APK generated could you please try and share your feedback?
#17226
major-mayer commentedon Jul 21, 2026
Sorry for the late reply, I was on vacation.
I have just downloaded the APK and tried opening a PDF, and it opened in the Android PDF viewer 🥳
On the other side, if I open a DOCX/ ODT it opens in the OnlyOffice web viewer, as expected.
These are my OnlyOffice settings in Nextcloud:
So I think the behavior now matches the settings.
Thanks for your work!
Edit: I just learned about the new file action in the context menu.
Everything works as expected, except when the file is not yet downloaded and online + local editor support is there.
Why can't I directly open the file in the online editor, but have to download it (and subsequently open it in a local editor) first?
I don't care too much, but I could imagine this to be somewhat counterintuitive for other users.
tobiasKaminsky commentedon Jul 22, 2026
What mimetype was this? Is this maybe within "optional mimetype"?
major-mayer commentedon Jul 22, 2026
I can reproduce it with different file types like ppt, pptx, odt, ect.
None of these should be in the optional mimetypes list, if I understand it correctly.