Throw an exception if a secondary isolate tries to send a platform message (#5069)
Platform messages are only support in the UI isolate. Secondary isolates do not have a window that can receive incoming messages, and outgoing messages are not tagged with a destination isolate and thus will always be dispatched to the UI isolate. Fixes https://github.com/flutter/flutter/issues/16846
Showing
想要评论请 注册 或 登录