While scanning Bluetooth device in foreground via Core Bluetooth framework I can able to get the kCBAdvDataManufacturerData in advertisementData. If I scan Bluetooth device in background I can get the advertisementData and other values like services, local name but manufacturing data is missing in advertisementData.
This is happening while I restart the iPhone and app wake up in background and start scanning the Bluetooth device but the advertisementData doesn't contain kCBAdvDataManufacturerData key.