receivesAdvertisements static method

bool receivesAdvertisements(
  1. String deviceId
)

receivesAdvertisements returns true on web if the browser supports receiving advertisements from a certain deviceId. The rest of the platforms will always return true. If true, then you will be getting scanResult updates for this device.

For this feature to work, you need to enable the chrome://flags/#enable-experimental-web-platform-features flag. Not every browser supports this API yet. Even if the browser supports it, sometimes it won't fire any advertisement events even though the device may be sending them.

Implementation

static bool receivesAdvertisements(String deviceId) =>
    _platform.receivesAdvertisements(deviceId);