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
The return type of the FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE) function is Future<bool>, which is just bubbling up the value from the method channel. This is great on Android, but on iOS, the method channel returns a string of the iOS version from boilerplate plugin code. At runtime, if the addFlags function is invoked in iOS, an exception is thrown because of invalid type coercion.
The obvious workaround is to only invoke the function if Flutter detects Platform.isAndroid, but this is not intuitive nor represented in documentation.
I suggest modifying the iOS plugin code to invoke the result function with value false.
The text was updated successfully, but these errors were encountered:
The return type of the
FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE)
function isFuture<bool>
, which is just bubbling up the value from the method channel. This is great on Android, but on iOS, the method channel returns astring
of the iOS version from boilerplate plugin code. At runtime, if theaddFlags
function is invoked in iOS, an exception is thrown because of invalid type coercion.The obvious workaround is to only invoke the function if Flutter detects
Platform.isAndroid
, but this is not intuitive nor represented in documentation.I suggest modifying the iOS plugin code to invoke the
result
function with valuefalse
.The text was updated successfully, but these errors were encountered: