nextcloud / nextcloud/ios

Client settings should be kept for reconnecting to account.

Open
#2,052 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.5k
Forks
1k
Avg merge
2d 18h
Merged PRs (30d)
13

Description

Today I (again) got a call from one of users complaing that the Nextcloud has her kicked out. This is something that sometimes happens but it is not entirely clear why.
It seems that after some errors when trying to communicate with the server the account is removed on the iPhone. There are no hints in server logs.
In my case it happens when my friend is in India where connection is really bad sometimes and lots of requests can not finish (I see sometimes a big number of requests with status 499 in nginx log).

Steps to reproduce

As descibed in #2038 the iOS client sometimes loggs out and the user is forced to reconnect to the server. The user looses the settings.

Expected behaviour

When logged out and reconnected to the Nextcloud instance, the settings used before for the account shall be applied again and automatically.

I don't know if iOS has an option to keep the settings on the phone. If not, a backup of settings to the Nextcloud instance would be helpful.

When connecting to a Nextcloud account then if a settings file is found on the Nextcloud present an option to import the settings for the client.

Actual behaviour

When reconnecting to the account, the user needs to set all settings again manually.

Screenshots
Logs
Reasoning or why should it be changed/implemented?

This would ease reconnecting if connection has been logged out for whatever reason.
It might also ease settings if adding/connecting another device to the account.
If the settings file would be json (or something editable), the server admin may provide default settings for new accounts.

Environment data

iOS version: iOS 15.5, iOS 16, iOS 17

Nextcloud iOS app version: 4.4.0, 4.9.6

Server operating system: Debian, Nextcloud community fpm docker image.

Web server: nginx

Database: Postgres

Nextcloud version: 23 latest, 26 latest

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reconnect/logout behavior described in issue #2038 and determine how the iOS client currently handles account settings. Done means a user who reconnects to a Nextcloud account can recover and automatically reapply prior settings, with an import path if settings are stored on the server.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.