You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's left in there for now to help with the migration away from FlutterViewController publicly being a FlutterBinaryMessenger. Unfortunately if you don't have Werror turned on the change just shows up as a warning. We should have a grace period before we remove it.
I'm not know very well. According the annotation of this property:
"This is just a convenient way to get the |FlutterEngine|'s binary messenger."
It seems to be the property binaryMessenger should belongs to FlutterEngine class, and I lookup the Docs, The FlutterEngine did maintain this property .
Activity
lhp3851 commentedon Aug 27, 2019
Since the FlutterBinaryMessenger has been remove from FlutterViewController, I got the compiler error in my Swift Project:
What should I pass to the second param for initial the FlutterMethodChannel instance in swift project?
lhp3851 commentedon Aug 27, 2019
got the resolve from #35773
Old Code:
New Code:
antoninobajeli commentedon Sep 1, 2019
Great @lhp3851 , your solution worked to me, but flutterViewController.binaryMessenger looks to be deprecated. :(
lhp3851 commentedon Sep 8, 2019
I'm not know very well. According the annotation of this property:
It seems to be the property
binaryMessenger
should belongs toFlutterEngine
class, and I lookup the Docs, TheFlutterEngine
did maintain this property .Update AppDelegate.swift
pedromassangocode commentedon Oct 1, 2020
Based on the API docs the implementation in question does still exist.
https://api.flutter.dev/objcdoc/Classes/FlutterViewController.html#/c:objc(cs)FlutterViewController(py)binaryMessenger