open_file icon indicating copy to clipboard operation
open_file copied to clipboard

Fix for null plugin binding error.

Open Samataro opened this issue 3 years ago • 2 comments

Fixes problems in an Add-to-App scenario when FlutterActivity will be opened, then closed and re-opened again. This causes an exception in onAttachedToActivity during plugin initialization. The problem is creating the MethodChannel here is the wrong place as the global variable flutterPluginBinding is still null (the order of calling onAttachToEngine and onAttachedToActivity seams to change after launching FlutterActivity a second time).

original issue: #163

Samataro avatar Oct 30 '21 09:10 Samataro

I have the same problem

progid avatar Jan 14 '22 12:01 progid

any plan to merge? I got the error on version 3.2.1

P-B1101 avatar Feb 21 '22 14:02 P-B1101