news-android icon indicating copy to clipboard operation
news-android copied to clipboard

Sync Multiple Server Sources/Nextcloud Accounts?

Open Dubidubiduu opened this issue 7 years ago • 5 comments

Hello everyone,

Short version: I do want to get Feeds from two different Nextcloud accounts. First account runs fine, when I want to add the 2nd Nextcloud instance in the app it somekind of freeze or at least it does nothing. It freezes in the menu with Facebook and "Nextcloud News" directly after clicking "Nextcloud News". Found out it does the same after clicking on Facebook.

Both of my Nextcloud accounts run on the same server/Nextcloud instance btw.

Version: 0.9.9.16, Android 8.1.0

Dubidubiduu avatar Sep 04 '18 11:09 Dubidubiduu

Hello and thank you for the feedback :)

At the moment it is not possible to synchronize with multiple Nextcloud instances. May I ask why you use two Nextcloud instances to sync your feeds with? Would it be possible to migrate all feeds onto one instance?

From a technical view, multi-account support is difficult to implement. Also considering that the database on your phone is quite limited in terms of data that it can handle (compared to your nextcloud server).

If you really need to use two nextcloud instances, the new single sign-on feature might be interesting for you. If you don't have thousands of unread news, switching accounts should be possible within < 10 seconds (Without reentering your credentials over and over again). This is not a full-blown "multi-account" support but I think it might get somewhere close to it. Even though all your data will be synced over and over again when switching accounts. Please note, that the Single Sign-On Feature is not officially released yet. If you're interested in testing this feature please send me an email and I can provide you with the apk files. (In case you're familiar with Android development you can build them yourself by using this branch here and by checking out the https://github.com/nextcloud/android/tree/sso repository).

David-Development avatar Sep 04 '18 12:09 David-Development

Thanks for your vastly fast answer. My use case is at follows: I'm organizing a very small ngo, which is using my webspace. On my webspace I installed nextcloud for both, ngo stuff and my personal. Everyone gets an account and is part of different groups (for files etc.). But I do want to offer the other activists some kind of newsroom, where they get their information. Unfortunately there isn't something like sharing feeds within nextcloud, some kind of this feature request https://github.com/nextcloud/news/issues/284..., so I had to setup one newsroom account and publicated the account information on our mailinglist, so everyone can access. But I don't want them to get my stuff (general news, hometown news, it stuff), which is more or less unrelated to the cause.

I don't know if this SSO Feature is what I need, because it seems to me, that switching accounts could conflict with calendar, tasks and contacts sync...

Maybe the parallel use of the app is what I need then, will investigate sometime if I could handle this.

Dubidubiduu avatar Sep 04 '18 12:09 Dubidubiduu

Okay, I get the use case. I need to think about it again.

I don't know if this SSO Feature is what I need, because it seems to me, that switching accounts could conflict with calendar, tasks and contacts sync...

Single sign-on is app specific. When you switch the account in the news app, it's only within the news app. Feel free to read more about it here or watch my 5min presentation.

David-Development avatar Sep 04 '18 13:09 David-Development

Hello and thank for your work. Just to let you know that I have a work and a personal nextcloud and I don't like to go to my "work one" when I am off and I don't want client to see a "dirty" comic ( olgaf no dirty hentai ;) ) l when working. Thank again for your work

rebootit avatar May 04 '20 18:05 rebootit

Since most other Nextcloud apps (Files, Talk, Notes) offer multi-account support now I'd like to bump this issue again

tux93 avatar Sep 22 '20 09:09 tux93

If anyone want's to take a shot at it - feel free but since a feature like this will be a lot of work (multiple databases, multiple accounts to sync, multiple notification channels, podcast storage, image caches, etc. etc. etc.), I don't see this happening anytime soon. Therefore I'm closing this.

Probably easier to install the app in another profile (e.g. if you have workprofiles setup) to use multiple accounts on a single device).

David-Development avatar Jan 31 '24 10:01 David-Development