Skip to content

Commit 5db48ef

Browse files
author
jure
committed
Set advertising name on android
1 parent 7b7c1ad commit 5db48ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/android/BluetoothLePlugin.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,9 @@ private void startAdvertisingAction(JSONArray args, CallbackContext callbackCont
713713
callbackContext.error(returnObj);
714714
return;
715715
}
716+
String adapterName = obj.optString("name");
717+
bluetoothAdapter.setName(adapterName);
718+
716719
settingsBuilder.setTimeout(timeout);
717720

718721
String txPowerLevelS = obj.optString("txPowerLevel", "medium");

0 commit comments

Comments
 (0)