ably-flutter icon indicating copy to clipboard operation
ably-flutter copied to clipboard

Fail early on unsupported platforms

Open ikurek opened this issue 3 years ago • 6 comments

Right now, when used on an unsupported platform (for example on Flutter Web) the {{ably-flutter}} plugin will fail with {{Unsupported operation}} error, only when a method from Ably is called on the platform side. This doesn't really explain what happened to the user, and it may be hard to understand the reason behind the error.

It may be a good idea to implement a more specific, user-facing error and make sure that it get's thrown on runtime as soon as the code is ran on an unsupported platform.

ikurek avatar Jun 13 '22 11:06 ikurek