We are trying to save the default address(id), of the peripheral device in server. When we scan for any device, we want to show only the device with id present in the server. Its good for android as it directly reads Mac address, but it seems IOS generates different id for peripherals and for some security reasons. How many ways are there to find the generated id? For example, we can find it if we "console log" the device info. This is not the solution we are looking for. Is there a way to find/generate id that ios generates, with the MAC address we have? Or are there any work around here?
BLE react-native-ble-manager : auto generated peripheral id
The peripheral UUID presented to your app is unique based on the peripheral and the iOS device you are running on. Not only you cannot generate this UUID yourself based on the MAC address, the UUIDs will be different for the same peripheral for different copies of your app.
This is by design for security purposes and there is no workaround to obtain the peripheral UUID by other means.