flutter-nordic-dfu icon indicating copy to clipboard operation
flutter-nordic-dfu copied to clipboard

Some DfuProgressListenerAdapter events are not fired

Open haoyuant opened this issue 2 years ago • 1 comments

In the Flutter, it seems that only few events are fired during DFU, in my case, they are onDfuProcessStarting, onProgressChanged and onDfuCompleted.

onError gets called in the native layer, but looks like the channel method call arguments is not in correct format, this event expects

  progressListener?.onError(
            call.arguments['deviceAddress'],
            call.arguments['error'],
            call.arguments['errorType'],
            call.arguments['message'],
          );

But the actual arguments the Flutter part receives is just the deviceAddress in String, not even in Map.

It would be good to fix the issues and get all events work. Thanks.

haoyuant avatar Oct 13 '21 13:10 haoyuant

I have same problem

aBuder avatar Dec 08 '21 14:12 aBuder