davx5-ose icon indicating copy to clipboard operation
davx5-ose copied to clipboard

Setup through the Nextcloud app (intent) not working

Open sunkup opened this issue 9 months ago • 3 comments

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).

sunkup avatar May 02 '24 08:05 sunkup

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.

jneidel avatar May 03 '24 10:05 jneidel

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.

rfc2822 avatar May 03 '24 11:05 rfc2822

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.

jneidel avatar May 03 '24 13:05 jneidel