flutter_boost Crash when using the share plugin

nr9pn0ug  于 2022-10-25  发布在  Flutter
关注(0)|答案(2)|浏览(244)

@noborder My app using the share plugin and crash happen when User tapped on the close button of UIActivityController

Steps to Reproduce

A small application to reproduce the bug(最小化可复现的demo)

  1. Present a FLBFlutterViewContainer A
  2. Tap to share button in FLBFlutterViewContainer A
  3. The App presents a UIActivityController B
  4. Tap to close button on UIActivityController B -> app crash

Flutter Boost Version

1.12.13+hotfix.9

Target Platform:

iOS

Target OS version/browser:

13.1.2

Devices:

iPhone

6l7fqoea

6l7fqoea1#

@xujim : Do you have any idea about this issue?

c3frrgcw

c3frrgcw2#

@xujim : I found root cause as the below:
When close UIActivityController, the Apple call parent.dismissViewController, it will trigger dismissViewController func of BoostContainer, and then engine has gone. :(

My dirty fixing: present UIActivityController on another window

相关问题