集成boost后只能第一次跳转到相册以后都无法进入
Activity com.sec.android.gallery3d.app.Gallery has leaked IntentReceiver com.sec.android.gallery3d.app.GalleryCoverMode$2@1d1629c9 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Activity com.sec.android.gallery3d.app.Gallery has leaked IntentReceiver com.sec.android.gallery3d.app.GalleryCoverMode$2@1d1629c9 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.
不集成boost没有这个问题
通过startActivityForresult之后没有走onActivityResult, image picker的插件跳转函数: Intent pickImageIntent = new Intent(Intent.ACTION_GET_CONTENT); pickImageIntent.setType("image/*"); Log.e("kangshifu","跳转"); activity.startActivityForResult(pickImageIntent, REQUEST_CODE_CHOOSE_IMAGE_FROM_GALLERY);、
此时承载flutterboostView的mainActivty有走detachFlutterview,是不是detach之后插件image picker的PluginRegistry.ActivityResultListener无法回调
从跳转到相册的日志
E/kangshifu: 跳转
I/Timeline: Timeline: Activity_launch_request time:130591068
E/kangshifu: user 离开
D/CrashReport: >>> com.to8to.wireless.designroot.MainActivity onPaused <<<
I/CrashReport-Native: Set native info: isAppForeground(false)
I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Disappear
E/FlutterBoost#: stop flutter view
I/flutter: TBLogo:[TBPrintLevel.Verbose] AppLifecycleState=AppLifecycleState.paused
I/flutter: AppLifecycleState:AppLifecycleState.paused
362
E/FlutterBoost#: Application entry background
E/container: container onStop
I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Background
E/FlutterBoost#: Application entry foreground
D/CrashReport: >>> com.to8to.wireless.designroot.MainActivity onResumed <<<
I/CrashReport-Native: Set native info: isAppForeground(true)
E/container: container onResume
E/FlutterBoost#: resume flutter view
E/container: onPostResume
I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Foreground
E/FlutterBoost#: onNativePageResult call error
I/flutter: TBLogo:[TBPrintLevel.Verbose] AppLifecycleState=AppLifecycleState.resumed
I/flutter: AppLifecycleState:AppLifecycleState.resumed
I/flutter: FlutterBoost#onShownContainerChanged old:null now:1555045705082-252206874
I/flutter: FlutterBoost#BoostContainerLifeCycleObserver container:RootContainerPage lifeCycle:ContainerLifeCycle.Appear
I/flutter: FlutterBoost#native containner did show,
manager dump:
onstage#:
{uniqueId=1555045705082-252206874,name=RootContainerPage}
offstage#:
{uniqueId=default,name=default}
E/FlutterBoost#: onContainerShown
E/container: container shower
D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2
I/TBuglyPlugin: initBuglyChannel initBuglyChannel method:reportException
你好请问你解决了吗
你好怎么解决
请问你怎么解决的
这个方案可以临时解决 https://github.com/flutter/flutter/issues/19103#issuecomment-569547402