bitfireAT / davx5-ose

DAVx⁵ is an open-source CalDAV/CardDAV suite and sync app for Android. You can also access your online files (WebDAV) with it.
https://www.davx5.com
GNU General Public License v3.0
1.25k stars 69 forks source link

Setup through the Nextcloud app (intent) not working #773

Closed sunkup closed 1 day ago

sunkup commented 2 weeks ago

Steps to reproduce:

  1. Install the Nextcloud app for Android and login
  2. Open the Settings of the Nextcloud app.
  3. Choose "Sync calendar & contacts".
  4. DAVx⁵ should open with Nextcloud Login Flow. However, it does not.

So the nextcloud flow can not be started via intent. There seem to exist intentToInitialLoginType() in LoginTypesProvider (overridden in StandardLoginTypesProvider) but it does not have any usages. Starting via an intent ala

adb shell am start -e url "https://davtest.dev001.net/nextcloud" -e loginFlow 1  at.bitfire.davdroid/at.bitfire.davdroid.ui.setup.LoginActivity

currently does only open the first page (LoginType chooser).

jneidel commented 2 weeks ago

For me the the flow also doesn't work. (Version 4.3.16.1-ose)

I can login to my nextcloud account (on my own instance), but pressing "Grant access" nothing happens, it just keeps spinning:

Reloading the page just returns me to the "Grant access" button.

rfc2822 commented 2 weeks ago

Reloading the page just returns me to the "Grant access" button.

This is not related to this issue. 4.3.16.1 is not affected by this issue. Please have a look at your Nextcloud logs. If the page in the browser has problems (like that Grant access doesn't work), it's not a DAVx5 problem.

jneidel commented 2 weeks ago

Thanks @rfc2822, you're right that it was not related.

For future reference the fix was as described here. In my case I had to disable forcing SSL on my domain via my nginx proxy manager.