-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Manufacturer Specific Data
From the spec:
The Manufacturer Specific data type is used for manufacturer specific data. The first two data octets shall contain a company identifier code from the Assigned Numbers - Company Identifiers document. The interpretation of any other octets within the data shall be defined by the manufacturer specified by the company identifier
If the device has manufacturer specific data in both the advertising data (AD) and the scan response data (SRD), Android and iOS behave differently:
As of iOS 9, the two fields are concatenated and provide all the data from the device. (from this post)
As of Android 21, the multiple instances of MSD are parsed separately and can be accessed with ScanRecord#getManufacturerSpecificData()
Due to iOS not allowing access to the raw bytes of the scan record, the library has decided all parsing is to be performed platform side.