Skip to content

Commit

Permalink
fix: improve companion app detection
Browse files Browse the repository at this point in the history
The previous limitations turned out to not be viable for the real world.
Thanks for the beta feedback @MaxIsMyName!
  • Loading branch information
mKeRix committed Nov 12, 2020
1 parent c2d52ac commit 4e75511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -931,7 +931,7 @@ describe('BluetoothLowEnergyService', () => {
advertisement: {
localName: 'Test Beacon',
txPowerLevel: -72,
manufacturerData: APPLE_MANUFACTURER_DATA.slice(0, 8),
manufacturerData: APPLE_MANUFACTURER_DATA.slice(0, 6),
},
} as Peripheral);

Expand Down
Expand Up @@ -461,7 +461,7 @@ export class BluetoothLowEnergyService
tag.peripheral?.advertisement?.manufacturerData
?.slice(0, 3)
.equals(APPLE_ADVERTISEMENT_ID) &&
tag.peripheral.advertisement.manufacturerData.length > 10
tag.peripheral.advertisement.manufacturerData.length > 6
) {
if (
!this.companionAppTags.has(tag.id) &&
Expand Down

0 comments on commit 4e75511

Please sign in to comment.