From d82162595c65e37bc0c3945957aaf31e26d71eb6 Mon Sep 17 00:00:00 2001 From: 0x7061 <1425202+0x7061@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:51:28 +0100 Subject: [PATCH] fix: add missing notifyListeners for scanStart/Stop --- ios/Plugin/ble/AbrevvaPluginBLE.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ios/Plugin/ble/AbrevvaPluginBLE.swift b/ios/Plugin/ble/AbrevvaPluginBLE.swift index b7f956b..0ef2144 100644 --- a/ios/Plugin/ble/AbrevvaPluginBLE.swift +++ b/ios/Plugin/ble/AbrevvaPluginBLE.swift @@ -91,10 +91,12 @@ public class AbrevvaPluginBLE: CAPPlugin { self.notifyListeners("onScanResult", data: data) }, { error in - call.resolve(["value": error == nil]) + self.notifyListeners("onScanStart", data: ["value": error == nil]) + call.resolve() }, { error in - call.resolve(["value": error == nil]) + self.notifyListeners("onScanStop", data: ["value": error == nil]) + call.resolve() }, macFilter, false,