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

Does no longer synchronize

Open tarioch opened this issue 1 year ago • 4 comments

Since a couple of days, news doesn't synchronize anymore.

Android News Version: latest from F-Droid 0.9.9.90 News Version: 25.0.0-alpha7 Nextcloud: 29.0.3

In nextcloud web news, the news are correctly displayed and seem to work fine, but in android news it doesn't seem to synchronize anymore, neither automatic nor if I pull down (just shows spinning forever). I tried clearing cache and even data, even uninstalled and installed again but still same behavior.

tarioch avatar Jul 05 '24 19:07 tarioch

As an additional data point, I now installed ocreader and it is able to sync correctly.

tarioch avatar Jul 06 '24 06:07 tarioch

Thank you for opening the bug report! Are you using Single Sign On or manual Login? Are there any errors? Did you add any new feeds recently?

David-Development avatar Jul 07 '24 10:07 David-Development

I'm using single sign on. I didn't see any errors and no changes to feeds recently.

tarioch avatar Jul 07 '24 12:07 tarioch

Fyi, tried now with manual app credentials instead of single sign on, unfortunately this didn't help.

tarioch avatar Aug 07 '24 21:08 tarioch

@tarioch Sorry for the late reply. Would you be able to provide me with a test account? I'm wondering if it's a specific feed or something that is breaking the sync. In case you have Android Development Experience - maybe you could pull some LogCat logs?

David-Development avatar Oct 10 '24 10:10 David-Development

I have actually figured out a bit more in the mean time. One issue (which was on my side) was that I have adguard running on my android and that was blocking requests (I think with all my attempts of reinstalling I forgot to exclude it and the login was still working).

Unfortunately it's still not working fully but at least partially/with a workaround. The case is now like this

  • trying to load news, directly returns without loading any data
  • fetch news either through ocreader or by accessing news through web
  • load news again, now fetches the data

Not sure if there is something like a timeout that I would need to increase for the initial fetch to work.

tarioch avatar Oct 10 '24 17:10 tarioch

Just another update, I can also just refresh a couple of times in news android, I don't need to use something else.

tarioch avatar Oct 14 '24 19:10 tarioch

Oh I see, thank you for the updates. Adguard interrupting the requests is interesting. I'll try to install it on my phone too and see if we can show some proper error messages letting the user know that he needs to disable it. Did you unblock the Nextcloud News and Nextcloud (Files) App on your phone? The Nextcloud (Files) app will send the actual network requests (at least the ones to your Nextcloud Server). Images etc. will be downloaded by the Nextcloud News app directly.

David-Development avatar Oct 16 '24 12:10 David-Development

What kind of settings did you have in Adguard that it blocked the Nextcloud requests? I've just installed the Adguard app but I can't seem to find any issues with the Nextcloud app

David-Development avatar Oct 16 '24 12:10 David-Development

To be honest I'm not 100% sure, my nextcloud url is a private server, so it should definitely not be on any add block list, but in the end explicitly whitelisting news android made it able to fetch again. Thank you very much for your assistance, maybe we should just close this as a weird issue on my side. The only thing that is remaining is that I have to refresh a couple of times until it loads, but that's something that I can easily live with.

tarioch avatar Oct 16 '24 15:10 tarioch