Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically close VPN popover when the app goes into the background #2562

Merged

Conversation

samsymons
Copy link
Collaborator

Users occasionally report confusion about the VPN popover being greyed out, even though it’s active. This is because the popover stays open when the app loses focus, so this commit changes it to dismiss when the app loses focus.

However, we want to keep the popover open if the user is onboarding, because otherwise the popover will vanish whenever they get prompted to do something.

Task/Issue URL: https://app.asana.com/0/1199230911884351/1206164244676889/f
Tech Design URL:
CC:

Description:

This PR updates the VPN popover to dismiss any time the app enters the background, in reaction to users occasionally being confused about why the UI appeared greyed out.

We only do this if the user is already onboarded, as otherwise the popover keeps dismissing any time they go to complete some onboarding step.

Steps to test this PR:

  1. Reset the VPN state
  2. Open the VPN popover, and then select another app, like Finder, and check that the popover doesn't dismiss
  3. Go through onboarding and check that the popover doesn't dismiss at any point during the flow
  4. Complete onboarding, and then select another app while the popover is open - this time, check that it does dismiss

Internal references:

Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation

Users occasionally report confusion about the VPN popover being greyed out, even though it’s active. This is because the popover stays open when the app loses focus, so this commit changes it to dismiss when the app loses focus.

However, we want to keep the popover open if the user is onboarding, because otherwise the popover will vanish whenever they get prompted to do something.
@samsymons samsymons requested a review from diegoreymendez April 7, 2024 21:46
@samsymons samsymons merged commit 7a2b37e into main Apr 8, 2024
17 checks passed
@samsymons samsymons deleted the sam/automatically-close-vpn-popover-when-app-is-backgrounded branch April 8, 2024 20:29
samsymons added a commit that referenced this pull request Apr 8, 2024
…flagger

# By Diego Rey Mendez (7) and others
# Via GitHub
* main:
  Automatically close VPN popover when the app goes into the background (#2562)
  Fix last known VPN crash and missing IPC registration (#2579)
  Create a new window when making a feedback form if necessary (#2563)
  Improve VPN uninstallation reliability (#2560)
  Removes last instance of NETWORK_PROTECTION flag (#2573)
  Bye bye NETWORK_PROTECTION (#2509)
  QWD: Enable Hide/Show for Autofill Credit Card Number and CVV (#2539)
  Removed the VPN waitlist beta pixels (#2555)
  VPN: Cleanup authorize call (#2565)
  Revert "VPN: Cleanup authorize call (#2553)"
  VPN: Cleanup authorize call (#2553)
  Improves underlying error pixel information (#2543)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants