Skip to content

iOS Crash: LE scan with manufacturer data prefix and mask #797

@steinerjakob

Description

@steinerjakob

Describe the bug
The ios app does crash with the updated version. With version 7.1.0 the scan did work fine.
I think the change with a6908eb664c435d16899f613301414830c2a230d did break the filter validation on iOS. Android looks fine so far.

My manufactorer data filter:

const manufacturerData: ManufacturerDataFilter = {
	companyIdentifier: parseInt(MANUFACTURER_CODE),
	dataPrefix: new Uint8Array(8).fill(0), // 8 bytes of zeros as placeholder
	mask: new Uint8Array(8).fill(0) // Ignore all bytes initially
};

Expected behavior
Do not crash during mask filter validation.

Screenshots

Image

Plugin version:

  • @capacitor-community/bluetooth-le: 7.3.0

Desktop (please complete the following information):

  • OS: iOS 18.x

Smartphone (please complete the following information):

  • Device: iPhone XR
  • OS: iOS 18.7.2

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingiOSImpacts the iOS platform

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions