Re: [web-bluetooth] AdvertisingEvent objects may contain service UUIDs that the site has not explicitly requested permission for. (#499)

A new `optionalServices` field is needed because the services in a [`BluetoothLEScanFilterInit`](https://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothlescanfilterinit) are all required for the advertisement to match the filter. Imagine a sensor which alternates between advertising the temperature and its battery level. The temperature service is the one that the application would require in its call to [`requestLEScan()`](https://webbluetoothcg.github.io/web-bluetooth/scanning.html#dom-bluetooth-requestlescan) but could specify the battery service UUID as an optional service so that it could also display that information if the device provides it.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/499#issuecomment-638479774 using your GitHub account

Received on Wednesday, 3 June 2020 21:49:18 UTC