Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Do not remove the tearDownChannel onDetachedFromActivity. #249

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

Merged
merged 2 commits into from
May 23, 2021

Conversation

zhenqiu1101
Copy link
Contributor

@zhenqiu1101 zhenqiu1101 commented May 21, 2021

Description

We should not tear down the method channel onDetachedFromActivity. That will cause MissingPluginException for the following method calls.

Related Issues

flutter/flutter#12264

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (flutter analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I am willing to follow-up on review comments in a timely manner.

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 a breaking change in CHANGELOG.md and increment major revision).
  • No, this is not a breaking change.

@zhenqiu1101
Copy link
Contributor Author

This is the same fix as the share plugin: flutter/plugins#3942.

@zhenqiu1101
Copy link
Contributor Author

@mhadaily Hi Majid, could you take a look at this PR?

@miquelbeltran miquelbeltran merged commit 792bb5a into fluttercommunity:main May 23, 2021
@miquelbeltran
Copy link
Member

Thank you @zhenqiu1101 !

@miquelbeltran
Copy link
Member

publised under share_plus 2.1.2

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants