OnlyOffice Community Server Mobile Editing in NextcloudApp - make it work again

Hi all,

@devnull
I think nextcloud offers this feature and for me and my family it is more than enough. It worked perfectly. So no need for a different server.

I did not use onlyoffice over the nextcloud android app so I do not know if it had worked there.
Using the firefox browser on Android it did work.

@bb77
I did not read about that but I am sorry to hear that.

I liked OnlyOffice more than Collabora. Until know I was really happy with it.

I am now looking in a lot of things I hope a find a solution. I think the easiest way would be downgrading the app but that could turn out to be the hardest way .

Thanks for the hints

@Mageunic
Many thanks for that. I could really use a few hints.

(I removed the posts so i can make one for alle relies)

Thanks all

Perhaps you can delete the app an manually install the app again from a download.
But was it really deactivated in this new version?

@devnull yes, this function is limited since maybe onlyoffice server 5.5 ( this app is based on onlyoffice server )

@florom
steps to disable mobile limitation :

In a shell on your nextcloud server:
  • nano

/..../nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/app.js

( edit the path with the way of your nextcloud folder)

  • crtl+w ( search function)
  • (copy paste it ) isSupportEditFeature:function(){return!1}
  • remove the " ! " to obtain this line : isSupportEditFeature:function(){return 1}

do this for the 2 other document :

  • nano /..../nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/documenteditor/mobile/app.js

  • nano /..../nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/presentationeditor/mobile/app.js

/!\ note : this solution must be reproduced at each update of the application /!\

don’t forget to reset your cookies and cache

maybe restart your nextcloud can refresh the app after changes

2 Likes

Hi all,

That is what I will do in the next days. I will post my findings

Yes, I have two nextcloud installments but cause of a series of misfortune both of them are upgraded. Nevertheless I could verfiy that in 0.1.9 it was possible to edit documents on android firefox.

Hi @Mageunic ,

Thank you for the hints but I could not get it working.
Restarting Nextcloud instance, deleting all history coockies, etc. it did not work.

I fear it won’t be that easy.
Thanks.
I will go deeper in this matter and post my findings.
Hopefully I find a solution.

1 Like

@florom, did you put a space between return and 1? ( after removing the !)

1 Like

@Mageunic
Yes, i did.
This could be wrong?

Thanks

@florom no, this is good :+1:

1 Like

Hi @Mageunic

it works now, i can edit on mobile devices in the browser and in the nextcloud app.
Needless to say I did not change anything (except your suggestions 3 days ago)

I am wondering why the app still passes the integrity check but I am glad that it works.

I will do the same to my second nextcloud and post results (in a few days)

Many Thanks!!!

2 Likes

it works :grinning:

1 Like

I am not able to open excel file or create file after editing file as per shown here,
do i need to go back to 0.1.9 to get it work?
Please guide,
thanks

I am on latest nextcloud 22.1.1
cummonty document server : 0.1.1
onlyoffice : 7.1.2

image

Hi @earth ,

Did you find the problem?

Have you tried Mageunic 's guide for editing?
Probably you have to be outside of your LAN that it works. At least in my setting this is the case due to firewall restrictions.

dear,
yes i did that, but onlyoffice get stucked as above.
i have nextcloud installed on rpi4 and community document server on same raspberry pi, using NC + OnlyOffice on ARM64 using qemu - #7 by mbcon for getting my onlyoffice to get working.
Please guide me,
thanks

Hi,

did it run ever?

I have no experience with qemu and I am not sure if using Rasp4 (which is arm architecture) can be used as Community Document server.

I am on 21.0.4 so I do not know if there are changes in 22.1.1 which will break my setup.
Downgrading is never a relieable option.

@Mageunic @florom
I have removed and installed documentserver_commuity again to recheck if it is working on mobile
well on mobile only view if working,
as soon as i changed/modified as per above mentiontion line.
it starts working

Thanks to community for getting this work.

1 Like

Onlyoffice newer version is available,
Anyone tested, is this working with above mentioned procedure ?
Please guide.
Thanks

Hi @earth ,

I installed it yesterday and it seems to work (viewing and editing browser and mobile).
Edit:
I did not have to use the mentioned procedure again.

1 Like

Hi @earth, the mentionned procedure is no longer valid because the onlyoffice server has been rewritten and from what I could observe, I can write with my mobile normally. it seems that the limitation is not present anymore

Hi all,

This hack still works but the the path has changed to:

/…/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/mobile/dist/js/app.js

/…/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/ documenteditor/mobile/dist/js/app.js

/…/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/web-apps/apps/ presentationeditor/mobile/dist/js/app.js

This section stays the same: