From 81cfd648b1df1cdbb01c864b32a273a0f1172cc6 Mon Sep 17 00:00:00 2001 From: Shahrir Hamzah <94373620+Soulseller2306@users.noreply.github.com> Date: Thu, 20 Aug 2026 17:04:28 +0800 Subject: [PATCH 1/4] Update plugin.xml Add Android 12+ Bluetooth permissions --- plugin.xml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/plugin.xml b/plugin.xml index 19558bbf..02b50cf6 100644 --- a/plugin.xml +++ b/plugin.xml @@ -30,11 +30,23 @@ target-dir="src/com/megster/cordova"/> - - - + + + + + + + - From ee41c9e57940af63bdd6ca5805b39731c2208715 Mon Sep 17 00:00:00 2001 From: Shahrir Hamzah <94373620+Soulseller2306@users.noreply.github.com> Date: Fri, 21 Aug 2026 12:21:52 +0800 Subject: [PATCH 2/4] Update plugin.xml latest iOS permission --- plugin.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin.xml b/plugin.xml index 02b50cf6..4b744efd 100644 --- a/plugin.xml +++ b/plugin.xml @@ -56,6 +56,16 @@ + + + This app uses Bluetooth to connect to the thermal printer. + + + + This app uses Bluetooth to connect to the thermal printer. + From 32b063ddb67238a7fda85ce085b55484f0e58794 Mon Sep 17 00:00:00 2001 From: Shahrir Bin Hamzah Date: Fri, 21 Aug 2026 15:44:08 +0800 Subject: [PATCH 3/4] scanForPeripheralsWithServices changed to nil for the scan to works --- src/ios/BLE.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/BLE.m b/src/ios/BLE.m index afbb84b9..402b39e9 100644 --- a/src/ios/BLE.m +++ b/src/ios/BLE.m @@ -220,7 +220,7 @@ - (int) findBLEPeripherals:(int) timeout hc02AdvUUID = [CBUUID UUIDWithString:@HC02_ADV_UUID]; NSArray *services = @[redBearLabsServiceUUID, adafruitServiceUUID, lairdServiceUUID, blueGigaServiceUUID, hm10ServiceUUID, hc02AdvUUID]; - [self.CM scanForPeripheralsWithServices:services options: nil]; + [self.CM scanForPeripheralsWithServices:nil options: nil]; #else [self.CM scanForPeripheralsWithServices:nil options:nil]; // Start scanning #endif From f6ee2a186ceb1ea089ab7c1cc69a0e1fd3539ee7 Mon Sep 17 00:00:00 2001 From: Shahrir Bin Hamzah Date: Mon, 24 Aug 2026 10:12:15 +0800 Subject: [PATCH 4/4] Removed ACCESS_COARSE_LOCATION from android to avoid error in building MABS --- plugin.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.xml b/plugin.xml index 4b744efd..8a79c688 100644 --- a/plugin.xml +++ b/plugin.xml @@ -37,9 +37,9 @@ - + android:maxSdkVersion="30" /> -->