-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[share] Do not tear down channel onDetachedFromActivity. #3942
Conversation
Open source issue: flutter/flutter#12264 |
This is sooooo good! Awesome find! This totally makes sense. The current implementation doesn't work since it's not symmetrical between engine attach/detach and activity attach/detach. |
Hi Chris, could you advice on the test failures? |
Chris is on leave. @stuartmorgan could you please advice on the test failures? It looks unrelated the PR. iOS share test and url_launcher plugin. Wanna make sure that the PR is safe to merge. Thanks! |
Try merging to fix the tests.
We can land this since it's affecting an internal customer, but we're in the process of turning this plugin down in favor of https://pub.dev/packages/share_plus; see the notice in CONTRIBUTING.md. You should submit this fix there as well since at some point there should be a transition to that version, and you'll want to have this fix there as well. |
* Remove the tearDownChannel onDetachedFromActivity. Only set activity to null. * update changelog * increase version
We should not tear down the method channel onDetachedFromActivity. That will cause MissingPluginException for the following method calls. internal: b/183065251. Open source issue: flutter/flutter#12264
Pre-launch Checklist
dart format
. See plugin_tool format)[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.