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

fix(connectivity_plus): Improve iOS PathMonitorConnectivityProvider implementation and documentation #2763

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

miquelbeltran
Copy link
Member

@miquelbeltran miquelbeltran commented Mar 28, 2024

Description

This PR introduces a couple of code changes:

  1. Increases the DispatchQueue "Quality of Service" from .background to .utility, as per documentation seems like a better choice.
  2. The pathUpdateHandler has been modified to use the provided path instead of using the stored currentPath in the path monitor. This may make a difference when it comes to obtaining reliable connectivity change updates. The code has been refactored to reuse the existing method.

As well, I have updated the README.md with some information regarding the iOS implementation and its limitations.

Related Issues

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@miquelbeltran miquelbeltran marked this pull request as ready for review March 28, 2024 15:50
@miquelbeltran miquelbeltran merged commit c850d58 into main Mar 29, 2024
23 checks passed
@miquelbeltran miquelbeltran deleted the miquelbeltran/858 branch March 29, 2024 18:06
hantrungkien pushed a commit to hantrungkien/graphql-flutter that referenced this pull request May 27, 2024
hantrungkien pushed a commit to hantrungkien/graphql-flutter that referenced this pull request May 27, 2024
hantrungkien added a commit to hantrungkien/graphql-flutter that referenced this pull request May 27, 2024
hantrungkien added a commit to hantrungkien/graphql-flutter that referenced this pull request May 27, 2024
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.

[connectivity_plus][iOS] checkConnectivity returns None unexpectedly occasionally
2 participants