Having two accounts clicking on the notification does not properly switch to the correct account
Open
Nobody has claimed this yet.
bug
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
- having two Nextcloud instances with accounts
- configure both accounts inside the iOS app
- select account 1
- getting a push notification on account 1
- getting a push notification on account 2
- clicking on push notification of account 2
- actual: app is just opened (see #867) but also it is opened in the wrong account - I need to switch the account in the settings and then I can navigate to the notification view there to see the notification
- expected: I'm directly redirect to the notifications page (#867) of the correct account
To test this I used this command on both instances:
sudo -u www-data php occ notification:generate morris "This is a nice text"
cc @marinofaggiana
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two-account flow in the iOS app using the notification:generate command on both Nextcloud instances, then trace push-notification handling, account selection, and the notification view referenced in #867. Done means tapping an account 2 notification opens the notification page for account 2 without manually switching accounts in settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100