Skip to content

Bug: SetScanPeriod and SetBetweenScanPeriod Methods Missing Return Statements Leading to IllegalStateException #146

@ktanaka101

Description

@ktanaka101

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:

  1. Invoke the setScanPeriod method from the Flutter side with a valid scanPeriod argument.
  2. Observe that after successfully setting the scan period, an IllegalStateException is thrown.
    Log: java.lang.IllegalStateException: Reply already submitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions