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
In the FlutterBeaconPlugin, the setScanPeriod and setBetweenScanPeriod method handlers within the onMethodCall function do not include return statements after invoking result.success or result.error.
This omission causes the method to continue execution and inadvertently call result.notImplemented(),
resulting in an IllegalStateException due to multiple responses being sent for a single method call.
Steps to Reproduce:
Invoke the setScanPeriod method from the Flutter side with a valid scanPeriod argument.
Observe that after successfully setting the scan period, an IllegalStateException is thrown.
Log: java.lang.IllegalStateException: Reply already submitted
The text was updated successfully, but these errors were encountered:
ktanaka101
added a commit
to ktanaka101/flutter_beacon
that referenced
this issue
Nov 15, 2024
…to prevent IllegalStateException
This commit adds missing return statements after result.success and result.error calls in the setScanPeriod and setBetweenScanPeriod methods. This prevents the method from continuing execution and inadvertently calling result.notImplemented(), which was causing IllegalStateException due to multiple responses being sent for a single method call.
Closesalann-maulana#146
Summary:
In the FlutterBeaconPlugin, the setScanPeriod and setBetweenScanPeriod method handlers within the onMethodCall function do not include return statements after invoking result.success or result.error.
This omission causes the method to continue execution and inadvertently call result.notImplemented(),
resulting in an IllegalStateException due to multiple responses being sent for a single method call.
Steps to Reproduce:
Log:
java.lang.IllegalStateException: Reply already submitted
The text was updated successfully, but these errors were encountered: